Node.js Role Based Authorization API for the LXP application
To start it locally, run from terminal:
docker-compose up
If running for the first time, you need to run migrations and optional seeds for the database. First start the API with docker-compose:
docker-compose up --build
(add -d to run it detached in background)
And then, open a new terminal and do:
docker exec -it lxp-api bash
cd /srv/app/lxp-server/db
/srv/app/lxp-server/node_modules/.bin/knex migrate:latest
/srv/app/lxp-server/node_modules/.bin/knex seed:run
This starts the following:
- LXP API: http://localhost:4000/api
- PostgreSQL database: localhost:54320 (from docker containers: posgresdb:5432)
- pgAdmin: http://localhost:8068
Please go to ./README/intelij_run_debug_setup.md for more info.
Take a look into postresql.sh
this script is creating and initializing local database. Additionally in db/knexfile.js
you will need to set below setting for development database:
database: "lxpdb",
user: "admin",
password: "admin",
host: "localhost",
port: 25432,