Investra is a user-friendly paper trading platform designed for individuals who want to practice stock market analysis with fake money, while utilizing real-time stock prices. It provides a risk-free environment to learn and develop trading skills.
🌟 Stars | 🍴 Forks | 🐛 Issues | 🔔 Open PRs | 🔕 Close PRs |
- Real-Time Stock Prices: Use actual market data for a realistic trading experience.
- Fake Money: Practice trading without the fear of losing real money.
- User Dashboard: Track balance, holdings, and past transactions.
- Purchase and Sell Stocks: Buy and sell stocks based on real-time data.
- Responsive Design: Optimized for use across all devices (desktop, tablet, and mobile).
Investra is built with the following technologies:
- JavaScript (ES6+): Core language for dynamic functionality.
- React.js: A powerful JavaScript library for building user interfaces.
- CSS: Used for responsive design and visual styling.
- Node.js: A runtime environment for server-side JavaScript execution.
- Express.js: A flexible backend framework for building RESTful APIs.
- MongoDB: A NoSQL database to store user information and transactions.
- MarketStack API: To fetch real-time stock prices.
- JWT (JSON Web Tokens): For secure user authentication.
- Axios: For making API calls and handling HTTP requests.
- Nodemon: Automatically restarts the server during development.
Follow these steps to set up Investra locally:
git clone https://github.com/SanchitGeez/Investra.git
For the frontend:
cd client/
npm install
npm start
For the backend:
cd backend/
npm install
node server.js
Open your browser and visit:
http://localhost:3000
You can alternatively run the backend using Docker. Follow these steps:
Make sure Docker is installed and running on your machine. Then, in the backend/
directory, run the following commands:
docker-compose up --build
This will spin up the backend server along with a MongoDB database inside Docker containers.
Once the containers are running, the backend will be available at:
http://localhost:3000
By default, the MongoDB instance will be accessible on port 27017
, and the backend server will connect to it automatically.
Once the platform is running, you can:
- Register and log in to the platform.
- Buy and sell stocks with real-time data using fake money.
- View your balance, holdings, and transaction history on the dashboard.
We welcome contributions from the community! To contribute, follow these steps:
Click the fork button on GitHub to create a personal copy of the project.
Create a branch for your feature or bug fix:
git checkout -b feature-name
Make your changes and commit them:
git commit -m "Add feature-name"
git push origin feature-name
Submit a detailed pull request (PR) with a description of your changes and link to any relevant issues.
- Ensure consistent code style and formatting.
- Write clear and concise commit messages.
- Thoroughly test your changes before submitting a PR.
This project is licensed under the MIT License. See the LICENSE file for more details.
Here are some previews of the platform in action:
- We extend our heartfelt gratitude for your invaluable contribution to our project!
- Make sure you show some love by giving ⭐ to our repository.
Thank you for your contributions!
We appreciate your interest in Investra! We look forward to your contributions.