Skip to content

Excel-MEC/excel-django-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages