Skip to content

esadakman/django-flight-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Flight App

Table of Contents

Acknowledgements

  • I created a Flight Reservation API with Django Rest Framework that allows users to
    • register/login/logout
    • crud operations for flights
    • crud operations for reservations

Overview

flight

Built With

  • Django
  • Django Rest Framework
  • Django Rest Auth
  • Django Debug Toolbar
  • PosrtgreSQL
  • Swagger

Project Structure

.──── django-flight-app (repo)
│
├── main
│     ├── __pycache__ 
│     ├── __init__.py 
│     ├── asgi.py
│     ├── urls.py
│     ├── wsgi.py
│     └── settings
│           ├── __pycache__
│           ├── db.sqlite3
│           ├── __init__.py 
│           ├── base.py
│           ├── dev.py 
│           └── prod.py
│─── flight
│       ├── __pycache__
│       │── __init__.py
│       ├── admin.py
│       ├── apps.py
│       ├── migrations
│       ├── models.py 
│       ├── permissions.py 
│       ├── serializers.py 
│       ├── tests.py
│       ├── urls.py
│       └── views.py
├──── users
│       ├── __pycache__
│       ├── migrations
│       ├── __init__.py
│       ├── admin.py
│       ├── apps.py
│       ├── models.py
│       ├── serializers.py
│       ├── signals.py 
│       ├── tests.py
│       ├── urls.py
│       └── views.py 
├── manage.py
├── db.sqlite3
├── debug.log
├── requirements.txt
└── .env

How To Use

To clone and run this application, you'll need Git

# Clone this repository
$ git clone https://github.com/esadakman/django-flight-app 

# Install dependencies
    $ python -m venv env
    > env/Scripts/activate (for win OS)
    $ source env/bin/activate (for macOs/linux OS)
    $ pip install -r requirements.txt 

# Add .env file for secret key, ENV_NAME and SQL informations 

- Create a .env file for =>
  -- SECRET_KEY,
  -- ENV_NAME  
  -- DEBUG value, 
  -- SQL_DATABASE,
  -- SQL_USER,
  -- SQL_PASSWORD,
  -- SQL_HOST and
  -- SQL_PORT values

- After these you can run the project as usual => 

# Run the app
    $ python manage.py runserver

Contact

Releases

No releases published

Packages

No packages published

Languages