In order to launch the backend (via command line)...
- Have a local database running (PostgreSQL preferred, but MySQL may also work)
- Set up a file under
backend/src/main/resources
calledapplication-local.properties
- Configure the backend to connect to your local database:
# Example:
spring.datasource.url = jdbc:postgresql://localhost:5432/postgres
spring.datasource.username = postgres
spring.datasource.password = mysecretpassword
- Move to the
backend
directory and compile using Maven:
cd backend
mvn -B clean package --file pom.xml
- Run using the configured profile:
java -jar target/backend-0.0.1-SNAPSHOT.jar --spring.profiles.active=local