Skip to content

Polkadot-Blockchain-Academy/rocket-cash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rocket-cash

Rocket Cash

🚀 💰 - Web2 digital cash example for PBA smart contracts module

Run the Server

To start the server locally:

cd rc-server
cargo run

Server will be running locally at: http://127.0.0.1:8000

Libraries used

Main Project structure

  • rc-server/migrations - SQL migration files for Diesel
  • rc-server/static/templates - Tera templates for pages
  • rc-server/src/main.rs - URL route handlers
  • rc-server/src/balance.rs and rc-server/src/transfer.rs - ORM/DM Queries

Example ideas for further development

  • Nth caller game - like when a radio station says, the 10th caller wins free tickets. Interactions could be hosting a new game, and calling in.
  • Lottery - people can purchase tickets and then winner(s) is selected at random to receive the pot from ticket purchases.
  • Microblogging - very stripped down version of twitter. Interactions could be posting an update and tipping someone when you like their update.
  • A sports book - interactions are offering a bet, accepting a bet, and judging an outcome (reporting who really won the sports ball game).

License

Licensed under the terms of the GPL-3 or later.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages