-
/api
-
/auth
-
/register-user
Returns a httpOnly cookie with jwt token if the username and email is available and valid
METHOD : POST
BODY :
{ username : String, email : String, full_name : String, password : String }RESPONSE :
- STATUS_CODE (400) : User registeration unsuccessful
- STATUS_CODE (200) : User registeration successful
-
/login-user
Returns 200 status code if the user is autorized
METHOD : POST
BODY :
{ username : String, password : String }RESPONSE :
- STATUS_CODE (400) : User unauthorized
- STATUS_CODE (200) : User authorized
-
- Python
- Django
- Django Rest Framework
Update .env.example file found in authentication_app and webletter with your owm keys and rename it to .env
- Clone this repo with git
git clone https://github.com/VishnuKrishnathu/Webletter.git cd Webletterdocker build .
- Setup a virtual environtment to run your django project.
python -m venv django-project - Once you’ve created a virtual environment, you may activate it.
django-project\Scripts\activate.bat - Clone this repo using git
cd django-project/Webletter- Install the dependencies from the
requirements.txtfile.pip install -r requirements.txt - Run the server
python manage.py runserver
Linux
- Setup a virtual environtment to run your django project.
python -m venv django-project - Once you’ve created a virtual environment, you may activate it.
soruce django-project/bin/activate - Clone this repo using git
cd django-project/Webletter- Install the dependencies from the
requirements.txtfile.pip install -r requirements.txt - Run the server
python manage.py runserver
We use Gtihub Actions for continuous integration. Check out our built workflows