A Django app for tracking my run mileage and times.
This is deployed on Heroku here.
Open a terminal in the project root and run pip install -r requirements.txt to download dependencies.
Run python manage.py migrate to build a SQLite database.
You will need a Sendgrid account to get the email backend working. Follow directons on their website to get an api key for sending mail via SMTP and set environment variables for SENDGRID_USER and SENDGRID_PASS.
Run python manage.py runserver for a dev server. The app will automatically reload if you change any of the source files.
Open a terminal in the ng-frontend directory and run npm install
Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Alternatively, you could just run the project in Docker.
Open a terminal in the project root and run docker-compose build to set up your containers.
Run docker-compose up to run the images.
Go to http://localhost:1337/ in your browser.
Run python manage.py test to execute the tests.
The build process uses a Python script called ng2django. So, be sure to use an environment where you have installed dependencies with pip install -r requirements.txt.
Then you can cd into the ng-frontend directory. Run npm run build.
- Django for web development
- Unit testing in Django
- CI/CD with Travis-ci, Heroku and GitHub
- Test coverage reporting with Coverage.py and Coveralls