Skip to content

minhtungo/ai-chat-server

Repository files navigation

Express TypeScript Boilerplate

Features

  • Email/Password authentication
  • Google OAuth integration
  • JWT-based authentication with refresh tokens
  • Email verification
  • Password reset
  • Two-factor authentication support
  • File upload with S3/MinIO
  • AI chat functionality
  • OpenAPI documentation

🚀 Tech Stack

Backend Framework

Database & Caching

Authentication

  • Passport.js - Authentication middleware
  • Argon2 - Secure password hashing
  • JWT - Token-based authentication

File Storage

Validation & Documentation

Communication

AI Integration

  • OpenAI - AI services for chat functionality

Development & Testing

📁 Project Structure

  • /src
    • /config - Configuration files and environment setup
      • appConfig.ts - Application configuration
      • env.ts - Environment variables validation
    • /db - Database schemas and migrations
      • /schemas - Database table definitions and validation
    • /docs - OpenAPI/Swagger documentation
    • /lib - Shared library code
    • /middlewares - Express middlewares
    • /modules - Feature modules
      • /auth - Authentication functionality
      • /chat - Chat and AI functionality
      • /healthCheck - Health check endpoints
      • /upload - File upload functionality
      • /user - User management
    • /services - Business logic and external services
      • /strategies - Passport.js authentication strategies
    • /utils - Utility functions and helpers

Credits

express-typescript-boilerplate

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages