Kompakkt is split up into multiple services, and getting all of them running locally can be a hassle. Mono tries to consolidate these services to get a development environment of Kompakkt running locally.
If the requirements are fulfilled, just 2 commands are required to get started with development:
npm install
npm start
- NodeJS >= 14 and NPM >= 7 to run the scripts and the applications
- Other package managers and runtimes may also work. See
configuration.ts
->PACKAGE_MANAGER
- Other package managers and runtimes may also work. See
- Git for automatically pulling the latest Kompakkt repositories
- Docker & Docker Compose
- Optional if MongoDB and Redis are provided (*See note at the end)
- Also optional if
SKIP_SERVER_INIT
is set totrue
inconfiguration.ts
Clone this repository:
git clone https://github.com/Kompakkt/Mono.git Kompakkt.Mono
Change in to the cloned directory cd Kompakkt.Mono
.
Install required packages using npm install
.
Open configuration.ts
in your favorite editor and configure the variables.
Run everything using npm start
.
Kompakkt.Mono uses mkcert to generate an SSL certificate for your localhost domain.
When trying to access your local Kompakkt environment at https://localhost:4200/
you might get a browser warning about an untrusted certificate using this locally generated certificate.
Usually, you can proceed past this warning, but you can also add the generated fullchain.pem
as a trusted certificate in your browser or your system.
Docker is not a hard requirement, as it can be disabled and replaced in the configuration.ts
file, but, when disabled, Kompakkt expects instances of MongoDB and Redis to be available.