Chalao - Bike Rental Platform
Chalao is a Django-based bike rental platform. This repository contains the source code for the backend of the project. The project allows users to book bikes, manage their bookings, and perform other related activities through REST APIs.
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher
- Django 3.2 or higher
- pip (Python package installer)
- Virtualenv (for creating a virtual environment)
Follow these instructions to set up and run the Django project on your local machine.
git clone https://github.com/your-username/chalau.git
cd chalau
Create a virtual environment outside the Clone directory to isolate the project dependencies:
python -m venv venv
Activate the virtual environment using the appropriate command for your operating system:
On windows: venv\Scripts\activate
On MacOS: source venv/bin/activate
Install the required packages using the requirements.txt file:
cd [project-folder-name]
pip install -r requirements.txt
Apply the database migrations to set up the database schema:
python manage.py migrate
Start the Django development server:
python manage.py runserver
You can access the API documentation by navigating to the following URL in your web browser:
http://127.0.0.1:8000/redoc/
You can access the API by navigating to the following URL in your web browser:
http://127.0.0.1:8000/swagger/