
This is the backend for the Traderake application built using Django and Django REST Framework with JWT authentication.
- User registration and login using JWT tokens
- Token refresh and logout functionality
- PostgreSQL as the database
- Custom User model (
CustomUser
) - Watchlist API (add/remove/list)
- Real-time stock data API integration
- Model support:
Stock
,Indices
,Watchlist
- DRF-powered API endpoints
- Authenticated API access with token
- Modular app structure (
accounts
, etc.) - Postman collection for testing
-
Clone the repository:
git clone https://github.com/sanal2206/Traderake-backend.git
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # For Linux/Mac venv\Scripts\activate # For Windows
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the database and run migrations:
python manage.py makemigrations python manage.py migrate
-
Run the development server:
python manage.py runserver
This project is licensed under the MIT License.