oussamabouchikhi / historicalplaces

Restfull API ready to use made using Django for arabic historical places

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

historicalplaces

This is the second project from Web Development with Django course, it is basically Restfull API ready to use made using Django for arabic historical places

Tools & Languages

Features

  • Django authentication system (login, logout)
  • Throtteling requests for authenticated & non-authenticated users
  • Permissions for authenticated & non-authenticated users
  • Token Authentication
  • Non-authenticated users can't add new places but they can add new ratings

Screenshots

Endpoints

places rates
add new place add new rate

Usage

The project structure should look like this

├── .git
├── historicalplaces # main folder
│   ├── │   └── ... # This is the main project folders
│   ├── │  requirements.txt
├── historical_places_env # virtual environment
│   ├── │   └── ...
└── README.md

Admin user account

username: admin
password: admin123

// 1- Create a virtual environment
~ virtualenv historical_places_env
// 2- Activate the virtual environment
(Mac)
~  source historical_places_env/bin/activate
(Windows)
~  cd historical_places_env/Scripts
~  activate
~  cd ../..
// 3- Change directory to the project folder
~ cd historicalplaces
// 4- Install dependecies from requirements.txt file
~ pip install -r requirements.txt
// 5- Check if all dependencies were installed successfully
~ pip freeze
// 6- Open historicalplaces folder with pycharm & select virtual environment python interpreter
// 7- Run server
~ python manage.py runserver

Contributing

Pull request are welcome feel free to fork this repo.

License

This project is open-sourced under the MIT license.

About

Restfull API ready to use made using Django for arabic historical places


Languages

Language:Python 96.4%Language:HTML 1.6%Language:JavaScript 1.1%Language:CSS 0.9%Language:Shell 0.0%Language:PowerShell 0.0%Language:Batchfile 0.0%Language:Xonsh 0.0%