Tollgator is a web-applications that allow users to turn their youtube videos to become an online courses. Students can then take them serially and receive a certification on completion.
-
Fork/Clone
$ git clone https://github.com/CaptainVee/Tollgator.git
-
Cd into Tollgator
$ cd Tollgator
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate
-
Install the dependencies:
(venv)$ pip install -r requirements.txt
-
Apply the migrations and run the Django development server:
(venv)$ python manage.py makemigrations (venv)$ python manage.py migrate (venv)$ python manage.py runserver
-
Test at http://localhost:8000/
-
start the redis server in another terminal:
$ redis-server
-
start the celery server in another terminal too:
$ celery -A tollgator beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler $ celery -A tollgator worker -l INFO
-
For runing test with pytest and coverage:
$ coverage run -m pytest $ coverage report