https://github.com/timdehof/fitnesstracker
https://github.com/timdehof/fitnesstracker
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timdehof/fitnesstracker
- Owner: timDeHof
- Created: 2022-04-05T15:14:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T15:24:00.000Z (over 4 years ago)
- Last Synced: 2023-03-11T04:05:05.378Z (over 3 years ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fitnesstrackr
an API for our new fitness empire, FitnessTrac.kr, using node, express, and postgresql
## Getting Started
Install Packages
npm i
Initialize Database
createdb fitness-dev
Run Seed Script
npm run seed:dev
## Automated Tests
**NOTE:** At first, there will be too many errors for the tests to even run. Start by running the seed:dev script above, until it is working.
Once you get to running the tests, we recommend to start with just the DB test first, and move to API next. This is because there will be so many errors in the beginning, it's hard to see what tests are passing or failing.
To run all the tests in watch mode (re-runs on code update), run
npm run test:watch
### DB Methods
npm run test:watch db.spec
### API Routes (server must be running for these to pass)
npm run test:watch api.spec