A web application that allows you to track your body measurements and body fat percentage. The core focus of this app is to help the user achieve his/her fitness goals.
-
Clone the project:
git clone https://github.com/domenicomanna/bodyFitTracker.git
-
Configure Postgres
- On your Postgres server, switch to the postgres user:
sudo -i -u postgres
- Switch to the sql client:
psql
- Create a database user:
CREATE USER "bodyFitnessTrackerDBUser" WITH password 'yourPassword';
- Create a database to store the application data:
CREATE DATABASE "bodyFitnessTrackerDB" OWNER "bodyFitnessTrackerDBUser";
- Finally, exit the database client:
exit;
- On your Postgres server, switch to the postgres user:
-
Create a
.env
file in theserver
folder and fill it in with the variable names present inserver/.env.keep
Important: If you are using Gmail for the account to send emails from, then you must create an app password, and use that for the email password value in the
.env
file -
Run the api
cd server/src/Api dotnet watch run
The api should be listening on https://localhost:5000/
-
First, follow the instructions for running the server
-
cd
to the correct directory:cd clientApp
-
Install dependencies:
npm install
-
Start the app:
npm start
-
The client app should be listening on http://localhost:3000/