Django REST API back-end for Prizy
Requirements:
Additional dependencies
For any Ubuntu-based OS:
$ sudo apt install build-essential python3-dev libmysqlclient-dev
1. Clone the repository:
$ git clone https://github.com/Larissa-Developers/prizy_backend.git
2. Install pipenv:
Follow the instructions on Pipenv Documentation to install pipenv
on your development environment.
3. Install dependencies:
In the project root directory run:
(venv) $ pipenv install
4. Create a new MySQL Schema and modify settings.py accordingly:
$ mysql -u <username> -p <password> < <project_dir>/build/init_local_db.sql
5. Migrate to MySQL:
$ python manage.py migrate
6. Create a superuser:
$ python manage.py createsuperuser --username=yourusername --email=youremail
7. Run the server:
$ python manage.py runserver
Output:
Django version 2.1.2, using settings 'prizy.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
All done. The server is up and running!