Prerequisites
Before you begin, make sure you have:- Node.js v18 or later
- npm or pnpm
- MongoDB Atlas account (or a local MongoDB instance)
- API Keys:
- Finnhub API Key (free tier available)
- Google Gemini API Key (optional, for AI features)
- Gmail account with an app password for email
Installation
Set up environment variables
Copy the example file and fill in your credentials:See the Environment Variables page for details on each variable.
Run the development server
Available Scripts
| Script | Description |
|---|---|
npm run dev | Start development server with Turbopack |
npm run build | Create production build |
npm run start | Start production server |
npm run lint | Run ESLint |
npm run test:db | Test database connection |
npm run db:clear-users | Clear all users (development only) |