Skip to content

A Ruby on Rails 7 application that simulates purchasing and selling stocks

Notifications You must be signed in to change notification settings

luhluh-17/stock-trading

Repository files navigation

Stokd

A Ruby on Rails 7 application that simulates purchasing and selling stocks

⚙ Setup

To run the project locally

  1. Clone the repository
  2. Create an environment file ".env" in the root folder
  3. Set values to the following variables. example syntax: "USERNAME = 'User1'"
    1. USER_NAME (Email address of the account use to send confirmation emails to newly created accounts)
    2. PASSWORD (Password of the account use to send confirmation emails to newly created accounts)
    3. SECRET (Secret key obtain from IEX API)
    4. PUBLISHABLE (Publishable key obtain from IEX API)
    5. ENDPOINT (IEX API Link - https://cloud.iexapis.com/v1)
  4. Navigate to folder
  5. Create Postgresql database using command "rails db:create"
  6. Run migrations using command "rails db:migrate"
  7. [OPTIONAL] Populate database using command "rails db:seed"
  8. Run Rails Server using "rails s"

💻 Features:

General

  • Register and Login account using Devise gem
  • Send email confirmation on upon registration

Admin

  • Approve and Reject users account
  • Edit users information
  • Display all transactions made by users

User

  • View list of trending stocks
  • Search stock using IEX API
  • Buy and Sell stocks in Marketplace
  • Update Buyer and Seller balance after each transaction
  • Display transactions made by the user

🚀 Live Demo

https://rails-stock-trading.fly.dev/

Dummy Accounts

Accounts Email & Password
Admin admin@test.com / password
User1 user1@test.com / password
User2 user2@test.com / password

👨🏽‍💻 Tech Stacks

Category Languages / Frameworks / Tools
Front-end html5 css3
Back-end ruby ruby on rails PostgreSQL

🛠 Database

📷 Screenshots

user-dashboard-min admin-transactions-min

👥 Team/Contributors

Team Member 1 Team Member 2

About

A Ruby on Rails 7 application that simulates purchasing and selling stocks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published