Skip to content

hakantapanyigit/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth Monorepo Project

A full-stack authentication system built with React and NestJS in a monorepo structure using Turborepo.

Project Structure

auth/
├── apps/
    ├── frontend/ # React + TypeScript + Vite
    └── backend/  # NestJS + MongoDB

Tech Stack

Frontend

  • React
  • TypeScript
  • Vite
  • TailwindCSS
  • React Router DOM
  • React Hook Form
  • Zod
  • Zustand
  • Axios

Backend

  • NestJS
  • MongoDB with Mongoose
  • JWT Authentication
  • Passport
  • Class Validator
  • Bcrypt

Prerequisites

  • Node.js >= 18
  • MongoDB instance
  • npm or yarn

Getting Started

1. Clone the repository

git clone <repository-url>
cd auth

2. Install dependencies

npm install

3. Environment Setup

Create .env files in both frontend and backend apps:

Frontend (apps/frontend/.env):

VITE_API_URL=http://localhost:3000

Backend (apps/backend/.env):

PORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret

4. Start the development servers

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published