The project is developed using Python and Django.
This repository contains the source code for the HeliumEdu template-project, which can be initialized using
helium-cli with:
helium-cli init <project_id> <Project Name> <hostname> <githuber_username>
To setup the Python/Django build environment, execute:
make installThis project is configured to work with a Virtualenv which has now been setup in the venv folder. If you're
unfamiliar with how this works, read up on Virtualenv here. The short version
is, virtualenv creates isolated environments for each project's dependencies. To activate and use this environment when
developing, execute:
source venv/bin/activateAll commands below will now be run within the virtualenv (though make commands will always automatically enter the
virtualenv before executing).
To ensure the database is in sync with the latest schema, database migrations are generated and run with Django. To run migrations, execute:
make migrateOnce migrations have been run, you can create a super user, which is a standard user that also has access to the /admin site.
python manage.py createsuperuserBefore commits are made, be sure to run tests and check the generated coverage report.
make testNow you're all set! To start the development server, execute:
bin/runserverA development server will be started at http://localhost:8000, though there is no mounted root URL—visit http://localhost:8000/admin or http://localhost:8000/info to see the project serve a request.
If the USE_NGROK environment variable is set when a dev server is started (using runserver),
pyngrok will be used to open a ngrok tunnel. This is especially useful when
using webhooks.