Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.