API repository to deal with backend python API's
Repo created to expose REST API.
- Django3
- Database (SQLite3)
- Django REST Framework
In "MovieRaterAPI" directory, run command "pip install virtualenv" and then "virtualenv venv" to create virtual environment "venv"
Setup and Activate Environment "venv" by command
Mac/Linux
- python -m venv env
- source env/bin/activate
Windows
- python -m venv env
- env\Scripts\activate
Whereas, env is environment name.
$ pip install -r requirements.txt
It is possible to deploy to local or to your own server.
$ python manage.py runserver
Additional command needs to run whenever you make changes in models file.
$ python manage.py migrate
$ python manage.py makemigrations
$ python manage.py migrate