An open API service indexing awesome lists of open source software.

https://github.com/Inna-B10/Workout-APP-_backend_

Backend for the "Workout App", built with Express and Prisma. It provides API endpoints for user management, workout tracking, and exercise logging. It features secure data storage, relational database support, and efficient queries for a seamless fitness experience.
https://github.com/Inna-B10/Workout-APP-_backend_

argon2 cors dotenv express express-async-handler javascript jsonwebtoken prisma-pg project

Last synced: 3 days ago
JSON representation

Backend for the "Workout App", built with Express and Prisma. It provides API endpoints for user management, workout tracking, and exercise logging. It features secure data storage, relational database support, and efficient queries for a seamless fitness experience.

Awesome Lists containing this project

README

          

# Project name: Workout APP - backend

### 💎 Description
[](preview.png)

Backend for the "**Workout App**", built with **Express** and **Prisma**. It provides `API endpoints` for user management, workout tracking, and exercise logging. It features secure data storage, relational database support, and efficient queries for a seamless fitness experience.

### 🧩 Tech Stack

![Express](https://img.shields.io/badge/Express_4.21.0-424242?logo=express&logoColor=white)
![Prisma](https://img.shields.io/badge/Prisma_5.19.1-424242?logo=prisma)
![pg](https://img.shields.io/badge/pg_8.13.0-424242)
![jsonwebtoken](https://img.shields.io/badge/jsonwebtoken_9.0.2-424242?logo=jsonwebtokens)
![cors](https://img.shields.io/badge/cors_2.8.5-424242)
![express-async-handler](https://img.shields.io/badge/express--async--handler_1.2.0-424242)
![argon2](https://img.shields.io/badge/argon2_0.41.1-424242)

![@prisma/client](https://img.shields.io/badge/%40prisma%2Fclient_5.19.1-424242)
![dotenv](https://img.shields.io/badge/dotenv_16.4.5-424242?logo=dotenv)
![colors](https://img.shields.io/badge/colors_1.4.0-424242)
![morgan](https://img.shields.io/badge/morgan_1.10.0-424242)
![nodemon](https://img.shields.io/badge/nodemon_3.1.7-424242)

🗃 Dependencies

```bash
npm install --save-dev @trivago/prettier-plugin-sort-imports
npm install -D prettier
npm i express
npm i -D colors
npm i dotenv
npm i -D morgan nodemon
npm i prisma pg
npm i express-async-handler
npm i argon2
npm i jsonwebtoken
npm i cors
```

---

✅ Done

- [x] Async error handling for method (express-async-handler)
- [x] App.use notFound, errorHandler
- [x] generate token (jsonwebtoken)
- [x] user registration
- [x] user login
- [x] exercise and workout models
- [x] exercise endpoint, create new exercise
- [x] update exercise
- [x] delete exercise
- [x] workout endpoint, create new workout
- [x] update workout
- [x] delete workout
- [x] workout log model
- [x] exercise log model
- [x] create endpoints for exercise log
- [x] exercise log:
- [x] create new log
- [x] get log (include if exist previous sets to compare)
- [x] update log (time/set)
- [x] is exercise completed
- [x] create endpoints for workout log
- [x] workout log:
- [x] create new log
- [x] get log
- [x] update log isCompleted
- [x] get user statistic