this project implemented after 3 days of learning Spring boot framework. I have built 6 API (rest endpoint) for user that sends an HTTP request and will be returned with an HTTP response this small project built to manage the flow of a bank
- The user should be able to issue a card
- The User can get a card by sending a post request with the PAN(16 digits number), CVV(3 digits secret) and expiry date(MM/yy), Only retrieve the card details when these are met
- the user can Transfer money to somebody else's card on the same system
- This API adds an amount to a card, the value can be negative so the amount will decrease. So withdrawal or deposit How do i install the project
you are in need for those software:
1 PostgreSql
2 JDK 17
3 Intellij IDEA (IDE)
4 Gradle
Note: make sure that no process is running behind on port 8080 if there is, you have to kill it or change the port
this is an example of how you can instruct your audience on installing and setting up your app- download the above requirements please don't forget to setup the system environment variables
- download the project from github to your desktop by cloning it
git clone https://github.com/Ranajaafar/Bank-Management-System.git
- open the project in intellij idea
- this Step you must do it to make the application work properly :
access
src/main/resources/application.properties
and change spring.datasource.username and spring.datasource.password DataBase connection
##connection string
spring.datasource.url=jdbc:postgresql://localhost:5432/Bank
spring.datasource.username=postgres
spring.datasource.password=123
spring.jpa.show-sql=true
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database(platform)
spring.jpa.properties.hibernate.t = org.hibernate.dialect.PostgreSQLDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto=update
- finally you can run the project. now we have a Tomcat web server up and running on port 8080 listenning for request
- in the browser access localhost:8080
Please feel free to fork this repository and clone it
If you want to contact me or you have any question you can reach me through below handles.