Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.45 KB

README.MD

File metadata and controls

61 lines (41 loc) · 1.45 KB

Tollgator

Tollgator

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.

Want to use this project?

  1. Fork/Clone

    $ git clone https://github.com/CaptainVee/Tollgator.git
  2. Cd into Tollgator

    $ cd Tollgator
  3. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  4. Install the dependencies:

    (venv)$ pip install -r requirements.txt
  5. Apply the migrations and run the Django development server:

    (venv)$ python manage.py makemigrations
    (venv)$ python manage.py migrate
    (venv)$ python manage.py runserver
  6. Test at http://localhost:8000/

  7. start the redis server in another terminal:

    $ redis-server
  8. 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
  9. For runing test with pytest and coverage:

    $ coverage run -m pytest
    
    $ coverage report