This app is an exercise about creating a template app to make money transaction between buddies.
The point here is to create the frontend and the backend (i.e. db construction).
Nothing is set in place to make real financial transaction.
- Read Database documentation
- Read application.properties documentation
- How to launch documentation
This app uses a MySQL DB. Here are some information about how to install this DB.
- Download and install MySQL : https://dev.mysql.com/downloads/installer/
- Record carefully your RootUsername and password to this DB.
- Open a command prompt :
- type in and press ENTER: mysql -u 'yourRootUsername' -p
- write down your password when asked and press ENTER
- type in and press ENTER : CREATE DATABASE paymybuddy;
- type in and press ENTER : exit
- locate both data.sql and schema.sql. They are normally inside resources file of this project.
- Go back to your prompt and type in + Enter :
- mysql -u username -p database_name < {full path to schema.sql}
- You are now good to go, and have correctly initialised your database
- Open a command prompt where createTestUser.sql is located (normally in tests resources) :
- type in and press ENTER: mysql -u 'yourRootUsername' -p
- write down your password when asked and press ENTER
- type in and press ENTER : CREATE DATABASE paymybuddytest;
- type in and press ENTER : exit
- type in : source createTestUser.sql
- press ENTER.
- Enjoy !
This file is located in src/main/resources.
It is used to give properties to the spring boot application.
In this project there is already one called application.example.properties.
- If you want to use this app through it sources files:
- Duplicate application.example.properties and rename it application.properties. Make sur it is located in src/main/resources
- add the correct values for each property :
- spring.datasource.username
- spring.datasource.password
- spring.datasource.url
- spring.jpa.properties.hibernate.dialect
- All the entries concerning ### OAuth2.0 ###
- If you use the jar file:
- Create a /config directory in the root directory where the jar is located.
- add application.properties in this /config directory
- follow steps above to configure application.properties
Enjoy !
- If you want to launch the app, you can launch the sources with your favorite IDE. Or you can launch the .jar file with you command prompt.
- Then use you internet browser and go to 'localhost:8080' to get into the app (tested on firefox).
- the 8080 port can be changed into the application.properties mentioned above.
- Here is the admin account by default in the app :
- For admin --> id : [email protected] / psw : admin