Skin Code, a web app for new comers and fanatics, fostering sustainable skincare for a sustainable world.
- fullstack-group-3/
- backend/
- middlewares/ (Express middleware)
- server.js (Main server file)
- .env (Environment variables)
- package.json (Backend dependencies)
- frontend/
- public/ (Static files)
- src/
- assets/ (Images and static assets)
- components/ (Reusable React components)
- pages/ (Page components)
- config/ (Configuration files)
- main.jsx (Main entry point)
- .env (Frontend environment variables)
- package.json (Frontend dependencies)
- project_details/ (Project documentation)
- backend/
- Navigate to
cd backend
- Install dependencies
npm install
- Don't forget to set up your
.envfile in/backenddirectory with this information below:
PORTCOSMILY_BEARER_TOKENCOSMILY_API_BASE_URL
- Run the backend server
node server.js
- On successful connection to the server and database you should see this in the terminal:
Server is running on PORT: 3000
- Navigate to
cd frontend/skincare-app
- Install dependencies
npm install
- Don't forget to set up your
.envfile in/frontend/skincare-appdirectory with this information below:
VITE_API_BASE_URL
- Run the app
npm run dev
- The app will most likely be running on server
http://localhost:5173/but please check in terminal to double check which port your app is running on.
-
Make sure you're in the right directory before you run any tests
-
Run the tests
npm test
-
Make sure you're in the right directory before you run any tests
-
Run the tests
npm test