Skip to content

gmh5225/FYP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Email Authentication Setup

This project uses NextAuth.js with Resend for email verification during user registration. Resend is a modern email service that's easy to set up and reliable.

1. Set up Resend Account

  1. Go to Resend and create a free account
  2. Verify your domain or use a Resend subdomain for testing
  3. Generate an API key from the Resend dashboard

2. Configure Environment Variables

Copy .env.example to .env.local and update the following:

# Email Configuration (using Resend)
RESEND_API_KEY=your-resend-api-key-here
EMAIL_FROM=noreply@yourdomain.com  # or your verified domain

3. Domain Setup

For Production:

  • Add and verify your domain in the Resend dashboard
  • Use noreply@yourdomain.com as the FROM address

For Development:

  • You can use Resend's free tier with their subdomain
  • Or use a sandbox domain for testing

4. Email Verification Flow

  1. User registers with email and password
  2. Account is created but not verified (emailVerified: null)
  3. Beautiful verification email is sent via Resend
  4. User clicks the link in the email to verify
  5. Account is marked as verified (emailVerified: timestamp)

5. Features

  • Beautiful Email Templates: Custom HTML email templates
  • Email Verification: Users must verify their email before full access
  • Password Strength: Enforced minimum 8 characters with uppercase, lowercase, and number
  • Error Handling: Comprehensive error messages for better UX
  • Resend Integration: Reliable email delivery with Resend

About

AI-Driven Multi-Asset Paper Trading and Portfolio Management Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 91.1%
  • Cython 4.1%
  • C 2.6%
  • TypeScript 1.6%
  • XSLT 0.3%
  • C++ 0.2%
  • Other 0.1%