dbalaouras / prizy_backend

Data access layer and REST API resources for Prizy

Home Page:https://larissa-developers.github.io/prizy_landing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prizy Back-end

Django REST API back-end for Prizy

Requirements:

Additional dependencies

For any Ubuntu-based OS:

$ sudo apt install build-essential python3-dev libmysqlclient-dev

Quickstart

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!

References

About

Data access layer and REST API resources for Prizy

https://larissa-developers.github.io/prizy_landing/


Languages

Language:Python 96.9%Language:Shell 1.6%Language:Dockerfile 1.6%