Search…
Application System

About

This project forms the base for all business applications belonging to island.is.

URLs

API

Initial setup

First, make sure you have docker, then run:
1
yarn dev-services application-system-api
Copied!
Then run the migrations:
1
yarn nx run application-system-api:migrate
Copied!

Running locally

You can serve this service locally by running:
1
yarn start application-system-api
Copied!

Graphql

Make sure you are serving the graphql client as well in order for you to make graphql calls to this service:
1
yarn start api
Copied!

OpenApi and Swagger

When making changes to the module code, run
1
yarn nx schemas/build-openapi application-system-api
Copied!
to generate the code needed for openapi and swagger. Then you can visit
1
localhost:3333/swagger
Copied!
In order to generate a typed fetch client run
1
yarn nx schemas/openapi-generator api-domains-application
Copied!
In order to update the graphql schema as well, run
1
yarn nx schemas/build-graphql-schema api
Copied!

Form

This app contains the frontend app for the application system

Running locally

You can serve this app locally by running:
1
yarn start application-system-form
Copied!
The only backend apps this app depends on are the graphql api and the application-system-api. Therefore, make sure you run those as well:
1
yarn start application-system-api
Copied!
(see apps/application-system/api/README.md if you run into any problems here)
and
1
yarn start api
Copied!

Adding a new template

After following the Reference Template, repeat the steps from OpenAPI and Swagger or run yarn install to update schemas.

Adding a payment step

If your application requires that the user pay a fee as part of the application process, that can be implemented by following the adding a payment step guide

Testing

It is as simple as:
1
yarn nx test application-system-form
Copied!

Code owners and maintainers

Last modified 15d ago