Django backend for the Forward application.
{
"username": "your_username",
"password": "your_password",
"password_confirm": "your_confirmed_password",
"first_name": "Your",
"last_name": "Name"
}
{
"message": "User registered successfully",
"user": {
"id": 1,
"username": "your_username",
"first_name": "Your",
"last_name": "Name"
}
}
{
"username": "your_username",
"password": "your_password"
}
{
"message": "Login successful",
"user": {
"id": 1,
"username": "your_username",
"first_name": "Your",
"last_name": "Name"
}
}
{}
{
"message":"Logout successful"
}
Forward-app/
├── api/ # API endpoints and serializers
│ ├── urls.py
│ ├── views.py
│ └── serializers.py
│
├── core/ # Business logic and models
│ ├── models.py
│ └── services.py
│
├── forward/ # Project root
│ ├── settings.py
│ └── urls.py
- Create and activate a virtual environment:
python -m venv .venv
# Windows
venv\Scripts\activate
# Mac/Linux
source venv/bin/activate
- Install requirements
pip install django djangorestframework
- Run migrations
python manage.py migrate
- Run the development server
python manage.py runserver
The server will be running at http://localhost:8000