A Basic demo backend using Java for Banking
An env.properties file is needed in your root directory and your chosen db name etc will need populating.
A sample env.properties file can be found in src/main/resources/templates/env.template and should be copied to the root directory and renamed to env.properties.
Gmail can be used and credentials and passwords and port number added:
Instructions for implementing Gmail email service:
- Open your gmail in the browser and choose the avatar in the top right corner and then choose Manage Your Account
- Choose Security down the left hand side
- In the search box type in App Passwords
- Follow the steps to create an app password
- Copy this password to the env file
- The correct port is usually 587
- The correct host details for gmail are smtp.gmail.com
- The mail username in the env properties is your chosen gmail email address
Creating an account in the API:
- Start the app once you completed all the env.properties correctly and placed the file in your root
- Sample create account body for postman has been added to src/main/resources/templates/createCustomerRaw
- Open Postman once the app is running successfully and copy the template to the raw setting and go to the relevant endpoint (http://localhost:8080/api/customer) with a post request and create your first account.
- Change come details and create a second account to allow use of the other endpoints for account transfers etc.
Swagger Swagger added to the api and can be accessed when the app is running by going to http://localhost:8080/swagger-ui/index.html#/