- Java 8 SDK
- PostgreSQL 10+
- Create a new database, e.g.
doppler
, you can use the GUI tool pgAdmin that usually comes with PostgreSQL installation - Execute
sqls/ddl.sql
script to create the tables - Update
src/main/resources/application.properties
(for deployment) andsrc/test/resources/application.properties
(for testing) to match your environment, especially:spring.datasource.url
the database urlspring.datasource.username
the database usernamespring.datasource.password
the database passwordjwt.secret
the secret to encode/decode JWT tokenjwt.expiration-in-seconds
the JWT token expirationtoken.m2m
the special token for other systems to callscanTicket
endpointnotification.content.shareEvent
the notification content format for sharing eventuser-reward-point.description.registerEvent
the user reward point description format for registering eventuser-reward-point.description.scanTicket
the user reward point description format for scanning ticketuser-reward-point.description.completeProfile
the user reward point description format for completing profileuser-reward-point.description.submitSurvey
the user reward point description format for submitting surveyuser-reward-point.description.submitQuiz
the user reward point description format for submitting quizuser-reward-point.pointsForCompletingProfile
the points that user gains for completing profile
The below scripts can be used in API development phase to generate and delete test data:
src/test/resources/insert-test-data.sql
src/test/resources/clear-test-data.sql
./mvnw clean test
./mvnw spring-boot:run
or build JAR and run
./mvnw clean package -DskipTests
java -jar target/doppler-api-1.0.0.jar