Skip to content

Django based microservice architecture with oauth2 πŸ”‹πŸŒŸ

License

Notifications You must be signed in to change notification settings

rk4bir/microservice-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

microservice-boilerplate

Django based microservice architecture with Oauth2

Overview of the Boilerplate

This is a Django-based microservice architecture that provides OAuth2 authentication and includes a product API. The architecture is containerized using Docker for easy deployment and scaling. The front-end uses Nuxt.js, allowing for a modular, decoupled system.

Features:

  • OAuth2 Authentication: Secure authentication with OAuth2 protocol.
  • Microservice Architecture: Independent services (Identity Server, Product API).
  • Docker Support: Easy containerization and deployment.
  • Nuxt.js Frontend: Seamless front-end integration.

Contributing

Feel free to open issues or submit PRs to improve the project!

Demo

demo.mp4

Local setup guide

Local setup guide (with virtualenv)

Setup and run development server of identity server

$ cd identity/
$ virtualenv -p /usr/bin/python3 venv
$ source venv/bin/activate
$ python manage.py migrate
$ python manage.py runserver 8000

Setup and run development server of products api

$ cd product_api/
$ virtualenv -p /usr/bin/python3 venv
$ source venv/bin/activate
$ python manage.py migrate
$ python manage.py runserver 8001

Setup and run development server of nuxt web client

$ cd nuxt-client/
$ yarn install
$ yarn dev

Local setup guide (with docker: separate services)

Setup and run development server of identity server

$ cd identity/
$ docker-compose up --build

Setup and run development server of products api

$ cd product_api/
$ docker-compose up --build

Setup and run development server of nuxt web client

$ cd nuxt-client/
$ docker-compose up --build