Application to track weight over time using React, Node.js, Express and Postgres
- Clone or download the repository:
git clone https://github.com/maricarmello/weight-tracker
- Go to the root of the project run npm install:
npm install
- Go to the root of the project and install all project's dependencies: (this command can take a couple of seconds to finish)
npm run installapps
- The application requires a Postgres database running on port 5432. You can setup one manually or via Docker with the following command:
docker run -d -p 5432:5432 --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres
- Run migration:
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres npm run migrate up
- Start application:
npm run dev
Run tests:
npm run test
- There's an issue with updating the date in some OS's (tested on MacOS with chrome) where the date gets subtracted by 1 day