MarlvinzW / djmicro2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Microservices Template

Includes:

  1. Django
  2. Django REST Framework
  3. MongoDb ORM
  4. Celery
  5. Docker
  6. Swagger API Docs

Steps:

  1. Install Cookiecutter: pip install cookiecutter
  2. Startproject: cookiecutter gh:cyantarek/djmicro2
  3. Answer questions and give your service a name
  4. cd into the folder
  5. Install requirements: pip install -r requirements.txt
  6. Run server: python manage.py runserver
  7. Run celery: celery -A api workder -l info
  8. Start rabbitmq, mongodb and configure them in settings.py and python manage.py makemigrations and python manage.py migrate
  9. Create Celery tasks in tasks.py
  10. Hello World API endpoint: 127.0.0.1:8000/api/v1/hello/
  11. Swagger API Docs endpoint: 127.0.0.1:8000/api/v1/docs/

About

License:MIT License


Languages

Language:Python 100.0%