This project will demo a couple data visualizations of how and where Infrastructure Bill money is being spent.
- Docker version of 20.10.17 or higher.
- Docker Compose V2 (included in Docker Desktop or via the compose plugin).
./scripts/bootstrap
./scripts/updateA pre-commit hook that lints staged files is included. It can be installed with:
python3 -m pip install pre-commit
pre-commit installIf there are lint failures, they are reported and the commit is aborted. Formatting fixes will be applied automatically. Once any other needed fixes are made, simply reattempt the commit.
The hook can always be ignored with git commit --no-verify.
Rebuild Docker images and run application.
./scripts/update
./scripts/server| Service | Port |
|---|---|
| Webpack Dev Server | 8765 |
./scripts/test| Name | Description |
|---|---|
bootstrap |
Setup environment file |
citasks |
Run tasks before building images in CI |
clean |
Free disk space by cleaning up dangling Docker images |
console |
Run interactive shell inside application container |
lint |
Lint source code |
server |
Run Docker Compose services |
test |
Run unit tests |
update |
Build Docker images |
yarn |
Run yarn commands on the app container |
To add a new package to the project:
./scripts/yarn add package-nameThe update script uses a --frozen-lockfile flag so when packages need an upgrade:
# Manually change the package.json to upgrade the version and run:
./scripts/yarn installWatch for TypeScript changes and list all errors
./scripts/yarn tsc --watch