Skip to content

neel-singhania/iitk-coin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnT summer project

IITK-coin

Backend for a centralized coin exchange system, developed under the mentorship of P-club IIT Kanpur

To run the project install go in your system and add it to your path: https://golang.org/doc/install

run the command "$ go install" to install the dependencies used in the project

run the command "$ go run main.go" to start the local server at port 8080.

For user auth

POST req at "http://localhost:8080/signin" for signin
POST req at "http://localhost:8080/signup"
GET req at "http://localhost:8080/secretpage"
Add JWT token in the header of req...

For currency transactions :-

POST req at "http://localhost:8080/init"
To award an amount to a roll number if the roll no had an account
Else if no account is present then an account is created in the DB and amount is added

POST req at "http://localhost:8080/transfer"
To transfer an amount from one roll number to another if the transaction is valid

GET req at "http://localhost:8080/balance"

About

summer project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages