A modern stock tracking application that helps users monitor and manage their watchlists.
- Real-time stock tracking
- Personalized watchlist management
- Market news and updates
- Email notifications
- Secure authentication
This application implements several security measures:
- Content Security Policy (CSP) - Prevents XSS attacks by controlling which resources can be loaded
- Rate Limiting - Prevents abuse of API endpoints
- Input Validation - All user inputs are validated to prevent injection attacks
- API Key Protection - External API keys are never exposed to the client
- Secure Authentication - Uses better-auth for secure session management
- Security Headers - Implements various HTTP security headers
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile based on.env.example:cp .env.example .env
- Update the
.envfile with your configuration values - Run the development server:
npm run dev
See .env.example for required environment variables.
- Never commit sensitive information to version control
- Regularly update dependencies
- Use strong, unique passwords for all services
- Rotate API keys periodically
- Monitor logs for suspicious activity
For production deployment, ensure you:
- Set
NODE_ENV=production - Use a strong
BETTER_AUTH_SECRET - Configure proper HTTPS
- Set up monitoring and alerting
- Regularly backup your database