Skip to content

Talai-Next/talai-api

Repository files navigation

Talai mockup data RESTful API

This project is a Django-based providing a RESTful API using the Django REST Framework (DRF) for show Talai mockup data.


Features

  • 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

Requirements

Make sure you have the following installed:

  • Python 3.8+
  • pip / pipenv / poetry
  • Git

Installation & Setup

Clone the Repository

https://github.com/Talai-Next/backend.git](https://github.com/Talai-Next/talai-api.git

Create and Activate Virtual Environment

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install Dependencies

pip install -r requirements.txt

Configure Environment Variables

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

Apply Migrations

python manage.py makemigrations
python manage.py migrate

Run Development Server

python manage.py runserver 8080

Your API will be available at: http://localhost:8080/

Project Structure (Example)

├── tracking/
│   ├── migrations/
│   ├── serializers/
│   ├── tests/
│   ├── views/
│   └── urls.py
├── talai-api/
│   ├── settings.py
│   ├── urls.py
├── manage.py
├── requirements.txt
├── .gitignore
└── .env

Useful Commands

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

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages