Skip to content

The Investment Suggestion Platform is a web application that helps users find appropriate stocks based on various financial metrics and personalized recommendations. Built with Next.js, Node.js, Prisma, and PostgreSQL, it leverages modern web technologies to provide real-time or historical stock data analysis.

Notifications You must be signed in to change notification settings

Ashish1022/CodeCrafters-Localhost

Repository files navigation

Investment Suggestion Platform

Overview

The Investment Suggestion Platform is a web application that helps users find appropriate stocks based on various financial metrics and personalized recommendations. Built with Next.js, Node.js, Prisma, and PostgreSQL, it leverages modern web technologies to provide real-time or historical stock data analysis.

Features

  • 📈 Stock Recommendations based on user preferences and financial metrics.
  • 🔍 Real-time Stock Data integration (if applicable).
  • 📊 Historical Data Analysis to help users make informed decisions.
  • 📝 User Profiles to save preferences and investment history.
  • Fast API Responses using Prisma ORM and PostgreSQL.

Tech Stack

  • Frontend: Next.js (React framework)
  • Backend: Node.js with Express
  • Database: PostgreSQL (via Prisma ORM)
  • Authentication: NextAuth.js (optional)
  • Data Fetching: Third-party stock market APIs

Installation

Prerequisites

Make sure you have the following installed:

  • Node.js (>=16.x)
  • PostgreSQL
  • Prisma CLI

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/investment-suggestion-platform.git
    cd investment-suggestion-platform
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a .env file in the root directory and add:

    DATABASE_URL=postgresql://user:password@localhost:5432/investment_db
    NEXT_PUBLIC_API_KEY=your-stock-market-api-key
  4. Run database migrations:

    npx prisma migrate dev
  5. Start the development server:

    npm run dev

API Endpoints

Method Endpoint Description
GET /api/stocks Fetch recommended stocks
GET /api/stocks/:symbol Get details of a specific stock
POST /api/user/preferences Save user investment preferences

Contributing

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-name.
  3. Commit changes: git commit -m "Added feature".
  4. Push to the branch: git push origin feature-name.
  5. Open a Pull Request.

License

This project is licensed under the MIT License.

Contact

For questions or contributions, reach out via [[email protected]] or open an issue on GitHub.

About

The Investment Suggestion Platform is a web application that helps users find appropriate stocks based on various financial metrics and personalized recommendations. Built with Next.js, Node.js, Prisma, and PostgreSQL, it leverages modern web technologies to provide real-time or historical stock data analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages