https://github.com/arunkumar-ms/calorietracking
https://github.com/arunkumar-ms/calorietracking
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/arunkumar-ms/calorietracking
- Owner: Arunkumar-MS
- Created: 2022-02-05T05:19:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T09:43:03.000Z (about 3 years ago)
- Last Synced: 2025-01-07T03:13:01.723Z (over 1 year ago)
- Language: JavaScript
- Homepage: calorietrackingapp.vercel.app
- Size: 1.61 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calorie Tracking Web App & API
### Below are the steps help you to run BE API,FE web app, E2E test and unit tests
#### How to take code to local
- Goto terminal and paste below clone command
```sh
git clone git@github.com:Arunkumar-MS/calorieTracking.git
```
#### Backend API
- Now go inside `server` folder
- Install packges by running `yarn`
- Run Api by running `yarn start`
- Now you should see message `Server is Running @ 3001`
#### FE React APP
- Open new terminal Start with root folder of this project
- Install packges by running `yarn`
- Run webapp by running `yarn start`
- Now you should see `started server on 0.0.0.0:3000, url: http://localhost:3000`
- Just vist `http://localhost:3000` you should be able to start using the app now.
#### Data for login(Please use below tokens for login)
- User token
`yJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiI2MWY5NjM4NGMyZWEzNzlhNjBkODc5OWEiLCJuYW1lIjoiRGF2aWQiLCJpYXQiOjE2NDM3MzM4OTJ9.FRsShLhoFfOiEtxIt79VywdmWklRAzij5ojQQxarcY8`
- Admin token
`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiI2MWY5NjM4YWMyZWEzNzlhNjBkODc5OWUiLCJuYW1lIjoiQXJ1biIsImlhdCI6MTY0MzczMzg5OH0.NsK00e4tCIJDH1XZYdvsT6qF2zHdoM4gOcXuewaopfE`
#### Running E2E tests
- While running app
- Open new terminal
- Goto `e2eTesting` folder
- Install packges by running `yarn`
- Run E2E test by using `yarn e2e`
- If you what to see visually how its running on browser please use below command
- `yarn e2e:ui`
#### Running FE Unit tests
- Goto root folder of web app
- Run `yarn test`
- Now you should be able to see tests running on terminal
#### Running BE Unit tests
- Go inside `server` folder
- Run `yarn test`
- Now you should be able to see tests running on terminal
#### Lighthouse report
##### Desktop with 50 food entry on home page

##### Mobile with 50 food entry on home page
