8000 GitHub - andkob/Forward-app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andkob/Forward-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forward-app Backend Notes

Django backend for the Forward application.

Endpoints

POST /api/users: New user registration

Request format

{
    "username": "your_username",
    "password": "your_password",
    "password_confirm": "your_confirmed_password",
    "first_name": "Your",
    "last_name": "Name"
}

Response format

{
    "message": "User registered successfully",
    "user": {
        "id": 1,
        "username": "your_username",
        "first_name": "Your",
        "last_name": "Name"
    }
}

POST /api/sessions: User login

Request format

{
    "username": "your_username",
    "password": "your_password"
}

Response format

{
    "message": "Login successful",
    "user": {
        "id": 1,
        "username": "your_username",
        "first_name": "Your",
        "last_name": "Name"
    }
}

POST /api/logout: User logout

Request format

{}

Response format

{
    "message":"Logout successful"
}

Project Structure

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

Setup

  1. Create and activate a virtual environment:
python -m venv .venv

# Windows
venv\Scripts\activate

# Mac/Linux
source venv/bin/activate
  1. Install requirements
pip install django djangorestframework
  1. Run migrations
python manage.py migrate
  1. Run the development server
python manage.py runserver

The server will be running at http://localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.7%
  • Python 33.4%
  • CSS 5.6%
  • Dockerfile 2.2%
  • Shell 0.1%
0