Skip to content

API for a tutoring application - connecting students and teachers for real-time collaborative sessions to solve math or English problems

License

Notifications You must be signed in to change notification settings

ntt261298/tutoring-api

Repository files navigation

Tutoring API

Installation and Setup

Setup code base

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

Setup dependencies

Mysql

Install mysql 5.7 and run the server:

$ mysql.server start

Create a local development database:

$ mysql -u root
mysql> create database thesis

Redis

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

Celery

Start celery tasks

$ celery -A main.celery worker --pool=solo --loglevel=INFO

Migrate database

Run database migrations:

$ python manage.py db upgrade

To create database migrations after changing models:

$ python manage.py db migrate

Create sample configs

To create all sample configs

$ python manage.py create_sample_config

Local development

To start an instance of the server running on your local machine:

$ python run.py

The APIs are now available at localhost:8000

About

API for a tutoring application - connecting students and teachers for real-time collaborative sessions to solve math or English problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published