Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.3 KB

README.md

File metadata and controls

41 lines (36 loc) · 1.3 KB

Excel Mec REST api

Steps for setting up the backend REST api

  1. Install mysql server
sudo apt-get install mysql-server
  1. Create a user in mysql. How to create a new user on mysql and grant access.

  2. Install linux dependencies.

sudo apt-get install python-mysqldb libmysqlclient-dev python-dev
  1. Go the to the directory excel_2019_django_cms/excel_2019_django_cms and duplicate the file secret.py.example with the name secret.py and give configurations there.
  2. Create and activate a virtual environment
virtualenv -p python3 env
source env/bin/activate
  1. Install python dependencies
pip install -r requirements.txt
  1. Make migrations
python manage.py makemigrations
python manage.py migrate
  1. Run the server
python manage.py runserver

Docs

https://docs.djangoproject.com/en/2.2/

https://www.django-rest-framework.org/

https://www.sslforfree.com/

https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html