Setup and start
Basic setup and server start

Installation and Setup

You install the ActiveQL server and UI as part of the wunder-monorepo (opens in a new tab). Please also check the README of the repo.

git clone https://github.com/WunderInsurance/wunder-monorepo.git

Install dependencies

You need to install the necessary dependencies first:

cd ./activeql/foundation && npm i 
cd ./activeql/demo/server && npm i 
cd ./activeql/ui && npm i 

Generate schema

You should generate the schema when installing for development, since it allows VSCode to offer intellisense for all domain configuration files.

cd ./activeql/foundation && npm schema

Start Demo Server

The actual server instances (ActiveQLServer and Express) are part of the activeql-foundation package. To start the server you need a separate server node package. This is the place for your DomainConfiguration and customization of your ActiveQL instance.

In the repo you find the package ./activeql/demo/server that comes with an example configuration that you can simply run with the command:

cd ./activeql/demo/server
npm run server

Then you can access the server at http://localhost:4000/graphql (opens in a new tab)

Domain Configuration

You should be able to see and execute some example Queries & Mutations when using the GraphQL API Explorer. You can add your own domain logic by editing the files in the folder ./activeql/demo/server/runtime/domain-configuration or (as code) in the file ./activeql/demo/server/runtime/domain-configuration.ts. The server should pick up any change automatically so you can see them instantly in the API Explorer.