2020-05-20 16:49:40 +05:30
|
|
|
# Deployment Portal Backend
|
2021-09-09 13:03:00 +05:30
|
|
|
- Use `export ENVIRONMENT=test` to avoid applying changes to the cluster.
|
2020-05-20 16:49:40 +05:30
|
|
|
- Docker Setup
|
|
|
|
|
- To run the application just do `docker-compose up`
|
2020-12-21 18:20:38 +05:30
|
|
|
- It is assumed that `deployment-portal-frontend` repository is present in parallel to this folder.
|
|
|
|
|
|
2023-08-17 19:25:28 +05:30
|
|
|
## Initial Setup
|
|
|
|
|
- Create your user in the database
|
|
|
|
|
```sql
|
|
|
|
|
INSERT INTO users (created_at, updated_at, email, name)
|
|
|
|
|
VALUES (now(), now(), 'ashvin.s@navi.com', 'Ashvin S');
|
|
|
|
|
|
|
|
|
|
INSERT INTO users_roles(user_id, role_id)
|
|
|
|
|
(SELECT u.id, r.id
|
|
|
|
|
from users u,
|
|
|
|
|
role r
|
|
|
|
|
where u.email like 'ashvin.s@navi.com'
|
|
|
|
|
AND r.name IN ('PORTAL_MANAGER', 'Infra_ALL_MANAGER'));
|
|
|
|
|
|
|
|
|
|
INSERT INTO users_teams(user_id, team_id)
|
|
|
|
|
(SELECT u.id, t.id
|
|
|
|
|
from users u,
|
|
|
|
|
team t
|
|
|
|
|
where u.email like 'ashvin.s@navi.com'
|
|
|
|
|
AND t.name IN ('Infra'));
|
2020-12-21 18:20:38 +05:30
|
|
|
```
|