viktor-podzigun / common-admin

Easy user permissions and applications management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

common-admin

Provides reusable components for simplifying user permissions and applications management.

DEPRECATED! Development of this app continues in the other repo

Setup Postgres DB

Create and start the postgres docker container

docker run -d -n postgres -p 5432:5432 -e "POSTGRES_PASSWORD=mysecretpassword" postgres:9.5.3

Create the admin_db

docker exec -it postgres psql -U postgres -w

Then copy and paste the content of the file ./dao/src/main/resources/common/admin/changelog/createDb.sql

Exit the psql console by typing \q and then enter.

Create initial schema in the admin_db

docker exec -it postgres psql -U admin_admin -w -d admin_db

and paste the content of the file ./dao/src/main/resources/common/admin/changelog/initialSql.sql

Exit the psql console by typing \q and then enter.

Create initial test user

The following script will crate test user with test password and SUPERUSER access

docker exec -it postgres psql -U admin_admin -w -d admin_db

and paste the content of the file ./admin/src/test/resources/demo/demo-data.sql

Exit the psql console by typing \q and then enter.

Build and Run

mvn clean install
cd admin
mvn cargo:run

Then open the following url in the Browser: http://localhost:9090/admin/admin.html

To login use test/test as login/password.

REST API Documentation

http://localhost:9090/admin/swagger-ui.html

Screenshots

Assign users to applications

Assign roles to users

Assign permissions to roles

About

Easy user permissions and applications management

License:Apache License 2.0


Languages

Language:Java 95.1%Language:TSQL 3.9%Language:HTML 1.0%Language:CSS 0.0%