Skip to content

Conversation

Copy link

Copilot AI commented Nov 25, 2025

Full-stack authentication application with NestJS backend, NextJS frontend, and PostgreSQL database.

Server (/server)

  • JWT-based auth with register/login/profile endpoints
  • TypeORM + PostgreSQL with User entity
  • Input validation via class-validator
  • bcryptjs password hashing
  • CORS configured for client origin

Client (/client)

  • Login/register pages with form validation
  • Protected dashboard route with auth guard
  • Auth context with token persistence
  • Axios interceptors for automatic token handling

Infrastructure

  • Docker Compose for PostgreSQL
  • Environment config via .env.example files

API Endpoints

POST /auth/register  { email, password, name? }
POST /auth/login     { email, password }
GET  /auth/profile   [Protected]

Screenshots

Home Register Dashboard
Home Register Dashboard

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/testreact/testreact/client/node_modules/.bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt
  1. Create source build server and client, simple
  2. Server use nestjs
  3. Client use nextjs
  4. Has authen
  5. Use Database is postgres

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 25, 2025
Copilot AI and others added 2 commits November 25, 2025 11:38
…reSQL support

Co-authored-by: tungnxt89 <14048792+tungnxt89@users.noreply.github.com>
…ganization

Co-authored-by: tungnxt89 <14048792+tungnxt89@users.noreply.github.com>
Copilot AI changed the title [WIP] Create source build for server and client applications Add NestJS server and NextJS client with JWT authentication and PostgreSQL Nov 25, 2025
Copilot AI requested a review from tungnxt89 November 25, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants