The authorization-service is a microservice to authorize permissions for the column board and the file-storage. (Other parts will follow).
Internally there is a postgres db which stores, roles, user groups and entities. They are linked the service returns a list of permissions for a given user groups and entity.
Roles are pre defined. User groups and entities are required to be set up or managed via an api.
Install docker compose
$ npm install
## start docker containers
$ docker-compose up -f ./docker-compose.local.yml
This will start a postgres db and a pgadmin instance.
If there is no data folder, the db will be initialized with the schema in db/seed and a default user POSTGRES
.
You can access the pgadmin at http://localhost:8080
.
Add a new server in the UI. Once connected you have access to the database and can run queries.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov