- Database Setup (Postgres):
CREATE DATABASE shopme; CREATE USER shopmeuser WITH ENCRYPTED PASSWORD 'shopmepass'; GRANT ALL PRIVILEGES ON DATABASE shopme TO shopmeuser;
- Once DB has been setup, download the repo and launch it in IntelliJ IDE.
- Update DB credentials in
application.yamlfile insidesrc/main/resourcesdirectory path. - Run the project.
- All Done!! Click Here to interact with your app:
Assumptions: IntelliJ IDE, Java (Open JDK 1.7+) and Postgres DB have been setup and is running prior to starting with this project.
References: For Complete details, please refer
Spring Boot Connect to PostgreSQL Database Examples- the source article for this Repo.