Skip to content

Joabsonlg/django-api-template

Repository files navigation

Django API template

API base project made with Django Rest Framework and Djoser for authentication.

Project setup

Use git to clone the project:

git clone https://github.com/Joabsonlg/django-api-template

Enter the project:

cd django-api-template

Create a virtual environment. (replace 'X' with your python version):

pythonX -m venv venv

Enter the virtual environment:

source venv/bin/activate

Add the environment variables: (create the '.env' file and add the variables)
For sending e-mails sendinblue was used

EMAIL_LOGIN=<myEmail>
EMAIL_PASSWORD=<myPassword>
SECRET_KEY=mySecretKey

Install the dependencies:

pip install -r requirements.txt

Create a superuser

python manage.py createsuperuser

Usage

Run the API

python manage.py runserver

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author


Joabson Arley
🚀

Gmail Badge

License

MIT

About

API base project made with Django Rest Framework and Djoser for authentication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published