Install Python 2.7 and pip
Set up Virtualenv:
$ pip install virtualenv
$ virtualenv env
$ source env/bin/activate
Install project dependencies:
$ pip install -r requirements.txt
Install mysql 5.7 and run the server:
$ mysql.server start
Create a local development database:
$ mysql -u root
mysql> create database thesis
Download and install Redis follow this link or these bellow commands (recommended)
$ wget http://download.redis.io/releases/redis-4.0.7.tar.gz
$ tar xzf redis-4.0.7.tar.gz
$ cd redis-4.0.7
$ sudo make install
Start redis server using this command
redis-server
Start celery tasks
$ celery -A main.celery worker --pool=solo --loglevel=INFO
Run database migrations:
$ python manage.py db upgrade
To create database migrations after changing models:
$ python manage.py db migrate
To create all sample configs
$ python manage.py create_sample_config
To start an instance of the server running on your local machine:
$ python run.py
The APIs are now available at localhost:8000