Skip to content

IsuruKDev/e-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Wallet

Features Implemented

  • Implement REST API
  • Complete database interaction with the domain model
  • Create, Deposit, Withdraw, Wallet to Wallet transactions and list all wallets
  • Run with Dockerfile or Docker-Compose
  • Basic endpoint authorization with JWT token mechanism

Technologies Used

  • Java
  • Spring Boot
  • Maven
  • MySQL
  • Spring Secuirty with JWT
  • Docker

How to Run the application

  • By using Dockerfile

    docker network create wallet-mysql

    docker run -p3306:3306 --name mysqldb --network wallet-mysql -e MYSQL_ROOT_PASSWORD=Stl@123456 -e MYSQL_DATABASE=ewalletdb -d mysql:8

    docker build -t app .

    docker run -p8080:8080 --name app --net wallet-mysql -e MYSQL_HOST=mysqldb -e MYSQL_USER=root -e MYSQL_PASSWORD=Stl@123456 -e MYSQL_PORT=3306 app

  • By using docker compose

    docker compose up .

After run the application please execute the following SQL queries before accessing the APIs. Which will create both user roles in the database.

INSERT INTO ewalletdb.roles(name) VALUES('ROLE_USER');

INSERT INTO ewalletdb.roles(name) VALUES('ROLE_ADMIN');

URLs

About

e wallet server side implementation using spring boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors