Follow the steps below to start the API server:
-
Primary requirements (These need to be preinstalled)
- pip
- virtualenv
-
Create a virtual environment and activate it
$ virtualenv -p python3.6 server $ source server/bin/activate -
Install the requirements
$ pip install -r requirements.txt
-
Set up Mysql Database
$ mysql -u root -p mysql> CREATE DATABASE kryptos CHARACTER SET UTF8; mysql> CREATE USER excel@localhost IDENTIFIED BY 'password'; mysql> GRANT ALL PRIVILEGES ON kryptos.* TO excel@localhost; mysql> exit
-
Run the dev server
$ python manage.py makemigrations $ python manage.py migrate $ python manage.py createsuperuser $ python manage.py runserver