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.
- 📈 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.
- 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
Make sure you have the following installed:
- Node.js (>=16.x)
- PostgreSQL
- Prisma CLI
-
Clone the repository:
git clone https://github.com/your-username/investment-suggestion-platform.git cd investment-suggestion-platform
-
Install dependencies:
npm install
-
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
-
Run database migrations:
npx prisma migrate dev
-
Start the development server:
npm run dev
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 |
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
. - Commit changes:
git commit -m "Added feature"
. - Push to the branch:
git push origin feature-name
. - Open a Pull Request.
This project is licensed under the MIT License.
For questions or contributions, reach out via [[email protected]] or open an issue on GitHub.