Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbchoa/warmup
👊 Minimalist toolbox for the modern strength athlete.
https://github.com/mbchoa/warmup
docker flask fullstack golang gunicorn nginx react
Last synced: 2 days ago
JSON representation
👊 Minimalist toolbox for the modern strength athlete.
- Host: GitHub
- URL: https://github.com/mbchoa/warmup
- Owner: mbchoa
- Created: 2018-11-10T07:26:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:48:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T08:56:03.089Z (about 2 months ago)
- Topics: docker, flask, fullstack, golang, gunicorn, nginx, react
- Language: JavaScript
- Homepage: https://strengthkit.netlify.com
- Size: 5.16 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Development
### Frontend```
$ cd web
$ npm install
$ npm start
```Navigate to http://localhost:3000 to interact with React application.
### Backend
#### Flask
```
$ cd api
$ virtualenv env
$ source env/bin/activate
$ (env) cd app
$ (env) pip install -r requirements.txt
$ (env) python src/app.py
```Navigate to http://localhost:5000/calculate-warmup/ to fetch calculated warmup weights for input `target_weight` value passed.
#### Go
```
$ cd api-go
$ go get // installs Go dependencies defined in the go.mod file
$ make dev-db // brings up Postgres database
$ make dev // starts up Go server using watcher library (similar to nodemon in Node)
```The dev Makefile script will bring up the postgres service defined in the docker-compose file.
The go API service is served from http://localhost:8080. Navigate to any of the following available API endpoints to test CRUD operations against PostgreSQL database.##### API endpoints
`GET /api/v1/workouts`: Fetches all workouts
`GET /api/v1/workouts/:workoutId`: Fetches single workout
`POST /api/v1/workouts`: Creates new workout
`PUT /api/v1/workouts/:workoutId`: Updates existing workout
`DELETE /api/v1/workouts/:workoutId`: Deletes existing workout
## Production
Coming soon.