This project is a Django-based providing a RESTful API using the Django REST Framework (DRF) for show Talai mockup data.
- RESTful API with Django REST Framework
- Route data integration via Pandas and CSV files (line_1, line_3, line_5, and SP)
- SQLite database
- Modular structure for apps
Make sure you have the following installed:
- Python 3.8+
- pip / pipenv / poetry
- Git
https://github.com/Talai-Next/backend.git](https://github.com/Talai-Next/talai-api.git
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
Create a .env
file in the project root (if used), or update settings.py
for:
DATABASE_URL=your-database-url
DJANGO_SECRET_KEY=your-secret-key
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 8080
Your API will be available at: http://localhost:8080/
├── tracking/
│ ├── migrations/
│ ├── serializers/
│ ├── tests/
│ ├── views/
│ └── urls.py
├── talai-api/
│ ├── settings.py
│ ├── urls.py
├── manage.py
├── requirements.txt
├── .gitignore
└── .env
python manage.py runserver # Start dev server
python manage.py makemigrations # Create migrations
python manage.py migrate # Apply migrations
python manage.py createsuperuser # Create admin user
This project is licensed under the MIT License.