8000 GitHub - Shaher-11/mamo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Shaher-11/mamo

Repository files navigation

README

Installation

Requirements

  • 💎 Ruby version 2.7.2 (manage Ruby versions with rvm or rbenv)
  • 🐘 PostgreSQL

Getting started

  • Fork & clone the repository
  • bundle install
  • Run rails db:create db:migrate
  • Run bundle exec rspec to validate the installation
  • Run rails server
  • You're good to go 🎉

Testing the app

  • run the rails server rails s
  • to get the transaction history of an account hit http://localhost:3000/transactions/history/1 where 1 is the account id
  • to perform a transaction from one verified account to another use the transaction endpoint
  • example http://localhost:3000/transactions?transaction_type=lunch&sender_phone=0114528792&receiver_phone=01094923371&amount=50 as long the account is created and verfied and has a wallet then then the amount will be deducted from the sender account and added to the receiver account other wise we return 403, also user can send by phone number or email.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0