AirlinesTickets is a Django web application with Django Rest Framework for selling plane tickets.
AirlinesTickets is a web application built with Django and Django Rest Framework to facilitate the selling of plane tickets. It includes features such as user authentication, ticket booking.
Follow these instructions to get the project up and running on your local machine.
Before you begin, ensure you have the following software installed on your machine:
-
Python (version 3.8.x recommended)
- You can download Python from the official website.
-
Poetry (version 1.1.x recommended)
- Poetry is a dependency manager for Python. You can install it using the instructions provided on the Poetry website.
-
Clone the repository:
git clone https://github.com/Yureeets/AirlineTickets-.git
-
Navigate to the project directory:
cd AirlinesTickets -
Install dependencies with Poetry:
poetry install
-
Run migrations:
poetry run python manage.py migrate
-
Create a superuser account:
poetry run python manage.py createsuperuser
-
Start the development server:
poetry run python manage.py runserver
Visit http://localhost:8000/ in your browser to access the application.
in progress
For detailed API documentation, you can use Swagger, which provides a user-friendly interface to explore and interact with the API endpoints.
To access the Swagger documentation:
-
Ensure your development server is running:
poetry run python manage.py runserver
-
Open your web browser and go to:
http://localhost:8000/swagger/
This will open the Swagger UI, allowing you to explore the available endpoints, make requests, and view responses interactively.
- Thanks NULP for this opportunity.