Skip to content

idr17/myapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

myApp

Simple account and banking case API Service with Express JS Framework

There is 3 entity in this case;

  • userAccount
  • Transactions
  • Balances history
  1. Firstly create an account to http://localhost:3000/api/user
example payload: {
	"email": "your@email.com",
	"password": "yourpassword"
}
  1. Login with your account to http://localhost:3000/api/user/login
example payload: {
	"email": "your@email.com",
	"password": "yourpassword"
}
  1. you can create transactions to http://localhost:3000/api/transaction
example CR payload: {
	"type": "DB",
	"amount": 40000,
	"to": "5d0bd05d1ea65e2a454753f3"
}
example DB payload: {
	"type": "DB",
	"amount": 10000,
	"to": "5d0bd05d1ea65e2a454753f3"
}
example TRANSFER payload: {
	"type": "TRANSFER",
	"amount": 50000,
  "from": "5d0a43ae5140c3185e9ba01a",
	"to": "5d0bd05d1ea65e2a454753f3"
}

NOTE: to create a transaction you must be logged in

About

Simple account and banking case API Service with Express JS Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors