An automatic stopwatch run tracker that users used to track their running or jogging. Built with JavaScript, Node.js, Express.js, and PostgreSQL. Worked with JWT for authorization. Wrote the API documentation using Apiary and deployed it on render.com
- Install Node.js
- Install postgres
- Install git
git clone https://github.com/MahmoudSerag/jogging-tracker-app.git
-
cd to the repository directory
cd joggingtracker-APP
-
Install dependencies
npm install
-
Create env.js file
cd config/env.js
-
Run server
npm run dev
exports.config = {
serverPort: int, { example: 3000 },
JWT_privateKey: string, { example: ' hdasjkdhksajdhska4565@#@$!' },
JwtExpire: string, { example: '30d' },
user: string, { example: 'serag' },
host: string, { example: 'localhost' },
defaultDatabase: string, { should be: 'postgres' },
currentDatabase: string, { example: 'joggingtracker' },
password: number, { 123456 },
databasePort: number, { 5432 },
cookieExpireIn: string, { '30' },
};