Skip to content

mexdev-ru/backend

Repository files navigation

Our domen

http://mexdev.ru/
uses Route53
(now EC2 on AWS is offline)

Confluence

https://mexdev-ru.atlassian.net/wiki/spaces/MONTANA/pages/4653139

Jira Kanban

https://mexdev-ru.atlassian.net/jira/software/c/projects/MON/boards/1

Front

another repo in git, build with docker-compose up

TODO

https://mexdev-ru.atlassian.net/wiki/spaces/MONTANA/pages/9011201/2021-08-17+upd+08-31

Service 1 (User)

Entity

  • User
    • uuid
    • first_name
    • last_name
    • patronymic
    • email
    • phone

Request Table

Path: /user

GET PUT POST DELETE
For one user /id /id /id
For all users /all

Requests features

Standard requests for interacting with the database


Service 2 (Employee)

Entities

  • Company

    • uuid
    • name
  • Role

    • id
    • name
  • Employee

    • uuid
    • roles (list)
  • RoleInCompany

    • uuid
    • company
    • role
    • role_issuer
    • employee

Table relationships

relationships.png


Requests Tables

Company

Path: /company

GET PUT POST DELETE
For one user /id /id /id
For all users /all

Role

Path: /role

GET PUT POST DELETE
For one user /id /id /id
For all users /all

Employee

Path: /employee

GET PUT POST DELETE
For one user /id /id & /add_role/id /id
For all users /all

RoleInCompany

GET PUT POST DELETE
For one user
For all users

Requests features

Company

  • POST

    • a company with this name should not exist
    • when creating a company, an employee and the ADMIN role are also created, if there is no one
  • Standard requests for interacting with the database

Role

  • POST

    • a role with this name should not exist
  • Standard requests for interacting with the database

Employee

  • POST

    • it is created only with a zero list of roles
  • PUT (/add_role)

    • the company must exist
    • the role must exist
    • the role issuer must have some role in the specified company

RoleInCompany

None


How to start service with database in Docker

  • Open terminal and go to the project directory
  • mvn clean install -DskipTests=true (mvnw for Win)
  • docker-compose up -d
  • docker-compose down any time you want to turn off Docker(before change docker-compose.yml)

Keycloak

Гайд, по которому создавать ream и пользователей (my_realm, my_client, Роли: ADMIN, USER) https://habr.com/ru/company/reksoft/blog/552346/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages