A flight booking API that enables a user to log in, upload passport photographs, book tickets, receive tickets as an email, check the status of their flight and make flight reservations purchase tickets.
- Clone the repo.
- Change into the directory
$ cd /flight-booking-api
- Create a
.env
file in your root directory as described in.env.sample
file. - Install Python 3.7.x
- To setup pyenv run the following commands:
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
Run $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc
Run pip install pipenv
pipenv install
To run the application:
- Run migrations
python manage.py migrate
- Start the server
Python manage.py runserver
pipenv run test
- Django - The web framework used
- Postgres - Object-relational database used.
- Django rest framework - A powerful and flexible toolkit for building Web APIs.
- Fork this repository to your GitHub account
- Clone the forked repository
- Create your feature branch
- Commit your changes
- Push to the remote branch
- Open a Pull Request
- Oluwatosin Akinola
This project is licensed under the MIT License - see the LICENSE.md file for details