Backend of the official website of PEC ACM CSS
- Java 17(Oracle or Corretto) installed.
- Intellij IDEA
- Docker
- Configure the springboot project in Intellij and Activate
localprofile. - Run the
data.sqlfile in resources to load the seed data. - Run code in Intellij
- Code, Code, Code, Review, Code, Code, Review, Push, PR, Merge
You need Intellij IDEA Ultimate, avail it by student discount
-
Create
.envfile:cp .env.example .env
Edit
.envwith your credentials (especially POSTGRES_PASSWORD and SMTP credentials) -
Start the backend:
docker-compose up -d
-
Backend is now running at:
http://localhost:8080 -
When done, stop the backend:
docker-compose stop
Warning
Use docker-compose stop to pause services. Only use docker-compose down if you want to completely remove containers and networks. Use docker-compose down -v to also remove database data (full reset).
- Always work in separate branch for each feature.
- Do not create branches with your name like
xyz, rather create branches based on branch or issue name, likefeat-user-service. - Take pull of latest
mainbranch before pushing code.
Goodluck :)