Follow the steps:
- Install IntelliJ IDEA 2022 (Community Edition)
- Clone project https://github.com/OstapGonchar/inventory-backend.git
- Launch IntelliJ and open Project
- Open File->Project Structure -> Add SDK as on screenshot
- Run->Run configurations->Create maven config as on screenshot->Run
- In inventory-backend via Terminal call
docker compose up -d
in order to launch DB. - PgAdmin can be accessed via http://localhost:5050/browser/.
- Register new Server there (name any, but in Connection tab fill in host and password as on screenshot, password is postgres):
- Create new inventory database there:
- Open file InventoryApplication
- And click Run (green arrow) as on screenshot