API developed with djangorestframework to registering new users and sending activation emails.
Use the package manager pip to install the dependencies needed.
Create a new virtual environment:
python3.8 -m venv venv
Activate virtualenv (OBS: on Linux):
source venv/bin/activate
Install all dependencies from requirements.txt:
pip install -r requirements.txt
Copy the content of .env.example and paste on .env:
cp backend/core/.env.example backend/core/.env
Inside .env file, we already have some default values set. Then you can change to your taste:
Apply the migrations:
backend/manage.py migrate
Run the server:
backend/manage.py runserver
Body:
{
"email": "some_email",
"password": "some_passoword",
"full_name": "some_name"
}
Body:
{
"email": "some_email",
"password": "some_passoword"
}
Header:
Authorization: Token <generated on login>
Header:
Authorization: Token <generated on login>