Simple CRUD example using Java Spring Boot and Angular.
- PostgreSQL
- JDK 11 or higher
- NodeJS and NPM
- Configure the ProstgreSQL database:
- Using a bash terminal, access the postgresql CLI on the postgres database:
psql postgres
- Create the user scrud_user with password scrud_pass for the postgres database:
CREATE ROLE scrud_user LOGIN SUPERUSER CREATEDB PASSWORD 'scrud_pass';
- Exit the postgresql CLI:
exit
- Using a bash terminal, access the postgresql CLI on the postgres database:
- Download the necessary node packages:
- Using a bash terminal, go to the
frontend/
folder of this project and execute:npm install
- Using a bash terminal, go to the
- First execute the backend:
- Using a bash terminal, go to the
backend/
folder of this project and execute:./gradlew bootRun
- Using a bash terminal, go to the
- Then execute the frontend:
- Using a bash terminal, go to the
frontend/
folder of this project and execute:ng serve
- Using a bash terminal, go to the
- Finally, access the page navigating to
http://localhost:4200
on your web browser.