Skip to content

Onion-architecture API management solution for modern fitness entrepreneurs and personal trainers

License

Notifications You must be signed in to change notification settings

jstojiljkovic/onion-architecture-docker-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onion Architecture Docker Fitness API

A smart digital api management solution for modern fitness entrepreneurs and personal trainers to simplify and streamline your business management, freeing you from the monotone paperwork so you have more freedom and energy for other pursuits.

You can create follow-up video content for every workout in your Fitness center. Depending on a video you can specify steps that closely follow everything you do. This could be a great solution for personal trainers allowing their users to inspect and practise certain routines at home.

This API helps you to make instructions videos available to your clients so that you can simplify your work during the fitness sessions. We also offer a database with instruction videos you can use.

v1 ERD

fitness-api drawio (2)

Onion Architecture

Domain entities are the core and centre part. Onion architecture is built on a domain model in which layers are connected through interfaces. The idea is to keep external dependencies as far outward as possible where domain entities and business rules form the core part of the architecture.

Onion architecture drawio (1)

Organisation Implementation

Currently CRUD operations for Organisation is disabled due to them only being available via CMS.

fitness-api-flow drawio (1)

Configuration

Before API usage, please rename .env.example into .env (and populate it based on the command outputs)

As this is dockerized all you have to do is run following command and enjoy playing:

  1. Build docker image
docker-compose build app
  1. Run the environment in background mode
docker-compose up -d
  1. Install all the dependencies
docker-compose exec app composer install
  1. Run the migrations and seeds
docker-compose exec app php artisan migrate --seed
  1. Create a personal access client and addit to .env
docker-compose exec app php artisan passport:client --personal

You can pull out Postman collection which is in the root of application named onion-architecture-docker-api.postman_collection.json

About

Onion-architecture API management solution for modern fitness entrepreneurs and personal trainers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages