Skip to content

Simulated stock market platform for users to get familiar with stock market trading, without using any real money.

License

Notifications You must be signed in to change notification settings

Luson045/Learn_Stocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Learn Stocks

Node.js React MongoDB Netlify Render License: MIT

Learn Stocks is a simulated stock trading platform built to educate users about stock trading, portfolio management, and market strategies. This platform combines real-time stock data with virtual trading and educational content to provide an engaging, risk-free learning experience.

🎯 Purpose

Learn Stocks aims to:

  • Educate users on stock trading concepts and strategies.
  • Simulate a real-world stock market environment with real-time data.
  • Engage users in building and managing virtual portfolios.
  • Empower users with financial literacy and market skills through interactive learning and expert content.

This platform is ideal for beginners and aspiring investors who want to learn how to trade in the stock market without risking real money.


⚙️ Setup

To get the Learn Stocks platform up and running locally, follow these steps:

Prerequisites

Make sure you have the following installed:

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/learnstocks.git
    cd learnstocks
  2. Install dependencies for both frontend and backend:

    # Backend setup
    cd backend
    npm install
    
    # Frontend setup
    cd ../frontend
    npm install
  3. Set up environment variables:

    • Create a .env file in the backend folder and add the following:
      MONGO_URI=your_mongodb_connection_string
      PORT=5000
      API_KEY=your_api_key_for_stock_data
    • In the frontend, if you have any environment variables, add them to a .env file.
  4. Run the application locally:

    # Backend
    cd backend
    npm start
    
    # Frontend (in a new terminal tab)
    cd frontend
    npm start
  5. Access the application:

    • Backend: http://localhost:5000
    • Frontend: http://localhost:3000

🛠 Tech Stack

Learn Stocks is powered by modern technologies:

Frontend

  • React - A popular library for building user interfaces.
  • CSS/Styled Components - For a clean and responsive UI.
  • Netlify - Hosting platform for the frontend.

Backend

  • Node.js - JavaScript runtime environment.
  • Express - A minimal and flexible Node.js web application framework.
  • MongoDB - NoSQL database for storing user data, stock info, and virtual portfolios.
  • APIs - Real-time stock data is fetched from external APIs.

Hosting

  • Frontend: Hosted on Netlify for fast, reliable, and secure delivery.
  • Backend: Hosted on Render for scalable and hassle-free server deployment.

🌐 Hosting on Render and Netlify

Frontend Hosting (Netlify)

  1. Create a Netlify account if you don’t already have one at Netlify.com.
  2. Connect your GitHub repo to Netlify, and select the frontend folder as the root.
  3. Build Command:
    npm run build
  4. Publish Directory:
    frontend/build
  5. Deploy: Once connected, every push to the main branch will automatically trigger a redeployment.

Backend Hosting (Render)

  1. Create a Render account at Render.com.
  2. Connect your GitHub repo and select the backend folder for deployment.
  3. Build and Start Command:
    npm install
    npm start
  4. Environment Variables: Add your MongoDB URI, API keys, and any other necessary environment variables under the "Environment" section.
  5. Deploy: Render will handle automatic deployments on pushes to the connected branch.

💡 Contributing

We welcome contributions! Please submit a pull request or open an issue if you'd like to contribute to the project.

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature-branch-name.
  5. Open a pull request.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


🚀 Follow Us


Feel free to customize and tweak this according to your needs!

About

Simulated stock market platform for users to get familiar with stock market trading, without using any real money.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published