Skip to content

Latest commit

 

History

History
135 lines (91 loc) · 2.53 KB

README.md

File metadata and controls

135 lines (91 loc) · 2.53 KB

B&C serviceformulier

Serviceformulier voor "Begraven en Cremeren" meldingen op de MOR-keten

Tech Stack

Django, Turbo JS, SCSS

Get Started 🚀

To get started, install Docker

We use the Makefile for commonly used commands

Start MOR core application

https://github.com/forza-mor-rotterdam/mor-core

Create local dns entry

Add '127.0.0.1 mbc.mor.local' to your hosts file

create docker networks

Use the Makefile command:

    make create_docker_networks

or:

    docker network create mbc_network
    docker network create mor_bridge_network

Build and run Docker container

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://mbc.mor.local:8001/admin/ You can login with the following credentials:

Frontend

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

Code style

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.

Tech Stack

Turbo JS, SCSS

Get Started 🚀

To get started, install Docker

Start MOR core application

https://github.com/forza-mor-rotterdam/mor-core

Create local dns entry

Add '127.0.0.1 mbc.mor.local' to your hosts file

create docker networks

    docker network create mbc_network
    docker network create mor_bridge_network

Build and run Docker container

    docker compose build

    docker compose up

This will start a webserver.

In terminal go to 'app/frontend' and start front-end and watcher by typing

    npm run watch

Authorize via the Django admin: http://mbc.mor.local:8001/admin/ You can view the website on http://mbc.mor.local:8001.