The Clean Transportation Data Hub provides an evidence base for the Clean Transportation Branch through data storage, analysis and visualization, that improves decision making to increase energy efficiency and de-carbonise the transportation system. It aims to be the most comprehensive, reliable and accessible data management system for clean transportation in the world.
docker-compose up
To access postgres:
docker-compose exec db psql -U postgres
To access the backend: (to do migrations and other stuff with the backend)
docker-compose exec api bash
python manage.py makemigrations
python manage.py migrate
To access the frontend: (to install/update a package, etc)
Go to your project folder in your terminal
Execute the following:
docker-compose exec web bash
This is where you can make changes to your package.json
You can technically make changes to your packages without going into your container, but you'll need npm installed into your system
To run in testing mode if you don't have docker-compose-local-dev.yml locally, create a new file and add the contents from docker-compose plus a line for:
to run using this docker file: docker-compose -f docker-compose-local-dev.yml up
this ensures that the authentication skips the actual keycloak authentication and uses the user table to get permissions
git fetch upstream
git checkout your_branch
git rebase --onto A B
upstream
is the remote containing the release branch, and A
is the hash of the latest commit to the release branch, and B
is the hash of the commit in your_branch
such that every commit after B
ought to be rebased onto the release branch.git add
the resolved changes before finishing the rebase (committing).your_branch
to a remote you will have to git push --force
in order not to end up with additional commits in your remote branch.metabase.env
, django's settings.DATABASES
and settings.DATABASE_ROUTERS
to point to said database.python manage.py makemigrations --empty metabase
RunPython
and django's QuerySet
API, you may read/insert/update/delete data from metabase's application database.report_card
(the associated model is ReportCard
).RunPython
"script" cleaner, consider putting the actual queries themselves in separate sql files and reading from those in RunPython
settings.INSTALLED_APPS
.overrides
(https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides).alpine
versions of images that simply don't include many of these dependencies; whether they will work for our purposes is another question.The code is a fork from Richard's personal project. Please do not clone, copy or replicate this project unless you're authorized to do so.
This is a list that was created on 2023-02-01 with all Zelda Devs to provide alternative work instead of bringing in a new ticket.
*Team Rule Do not bring in ticket After Friday
Help another Dev - see if other Devs need help to finish their ticket
PR Reviews – linked to the task above
Writing additional tests – for both tront and back end
Take a look at Tech Debt tickets - If we bring in tickets let's bring in Tech Debt first
Learning time:
Take the opportunity to familiarize yourself with business logic, tech (anything around work we do)
New learning and applying it to our work
Innovation work