Skip to content

An app that allows users to send fake money to each other in real-time. Made using React, Redux, Node, Socket.IO and MongoDB.

Notifications You must be signed in to change notification settings

cgrinaldi/peer-2-peer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peer 2 Peer Financial Transfers

An app that allows users to send fake money to each other in real-time. Made using React, Redux, Node, MongoDB, and Socket.IO.

Instructions

Clone onto your local machine followed by:

  1. mongod to start up the local instance of MongoDB
  2. npm install
  3. Rename server/config.sample.js to server/config.js and input correct information (mainly the secret)
  4. node server.js
  5. Navigate to localhost:3000.

Creating Users

When you first run the app, there will be no users in the system. Simply create a couple of user accounts in order to see them in your Dashboard view. Socket.IO is used to monitor when users are created or log on, so you can see them appear in real-time.

Transactions

Currently, transferring money between accounts is not functioning on the client-side. However, the server end point is setup, so if you use something like Postman, you can send a POST request to http://localhost:3000/transactions/send, including from, to, and amount in the body of the request.

Socket.IO is used to monitor when someone sends you a transfer in real-time, and you can see their balance update.

If you click on the Transactions tab, you can see all of the transactions that have been performed.

Major Tasks Remaining

  • Implement sending money in UI
  • Implement API endpoint for requesting money
  • Implement requesting money in UI
  • Handle online and offline messages

Issues

See issues for additional work that needs to be done.

About

An app that allows users to send fake money to each other in real-time. Made using React, Redux, Node, Socket.IO and MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages