Applicatie voor het ontdubbelen van meldingen in de MOR-keten
To get started, install Docker
https://github.com/forza-mor-rotterdam/mor-core
Add '127.0.0.1 ontdbblr.mor.local' to your hosts file
sudo nano /etc/hosts
Use the Makefile command:
make create_docker_networks
or:
docker network create ontdbblr_network
docker network create mor_bridge_network
Use the Makefile command:
make run_and_build
or:
docker compose build
docker compose up
To only run the docker container use:
make run
This will start a webserver. Authorize via the Django admin: http://ontdbblr.mor.local:8007/admin/ You can login with the following credentials:
- Email: admin@admin.com
- Password: insecure You can view the website on http://ontdbblr.mor.local:8007
Use the Makefile command:
make run_frontend
or in terminal go to 'app/frontend' and start front-end and watcher by typing
npm install
npm run watch
Pre-commit is used for formatting and linting Make sure pre-commit is installed on your system
brew install pre-commit
and run
pre-commit install
To manually run the pre-commit formatting run
make format
Pre-commit currently runs black, flake8, autoflake, isort and some pre-commit hooks. Also runs prettier for the frontend.