====
Web administration of kong Admin API. It is developed in angular 2 using AdminLTE theme.
Create an API to comunicate with admin.
curl -i -X POST --url http://localhost:8001/apis/ --data 'name=kong' --data 'upstream_url=http://localhost:8001' --data 'request_path=/kong' --data 'strip_request_path=true'
Add plugin to enable login.
curl -X POST http://localhost:8001/apis/kong/plugins --data 'name=basic-auth' --data 'config.hide_credentials=true'
Add a consumer.
curl -d 'username=kong_admin&custom_id=8a0f4c41-a9a9-4f84-8bd4-d9b9085b4569' http://localhost:8001/consumers/
Add user credentials to logon. Your user should be an email (mandatory).
curl -X POST http://localhost:8001/consumers/kong_admin/basic-auth --data 'username=king@email.com' --data 'password=12345678'
Enable cors plugin.
curl -X POST http://localhost:8001/apis/kong/plugins --data 'name=cors' --data 'config.credentials=false' --data 'config.preflight_continue=false'
- install docker image from kong
- clone repository
- npm install
- on environment.ts file adapt settings to your docker image
- npm start