Skip to content

illuricharles/assignment-fullstack-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Assignment – Fullstack Authentication App

A fullstack authentication built with React + Vite, Node.js + Express, Prisma.

Frontend is deployed on Netlify and backend is deployed on Render.


🚀 Live Links

Frontend: https://earnest-semolina-a8d684.netlify.app/
Backend: https://assignment-fullstack-auth.onrender.com


✨ Features

  • User registration
  • User login
  • Form validation (Zod + React Hook Form)
  • Secure password handling
  • API integration
  • Deployment on Netlify and Render

🛠 Tech Stack

Frontend

  • TypeScript
  • React + Vite
  • React Hook Form
  • Zod validation
  • Axios

Backend

  • TypeScript
  • Node.js + Express
  • Prisma ORM
  • Zod validation

▶️ Running the Project Locally

1. Clone the repository

git clone https://github.com/illuricharles/assignment-fullstack-auth.git
cd assignment-fullstack-auth

2. Set up environment variables

Backend

Copy .env.example to .env:

cd backend
cp .env.example .env

Update the values inside .env (DATABASE_URL, JWT_SECRET, etc.)

Frontend

Copy .env.example to .env:

cd ../frontend
cp .env.example .env

set:

VITE_API_URL=http://localhost:3000

3. Install dependencies

Backend

cd ../backend
npm install

Frontend

cd ../frontend
npm install

4. Run the project

  cd backend
  npx prisma generate
  npx prisma migrate deploy
  npm run dev

Backend runs at:

  http://localhost:3000

Start Frontend

  cd frontend
  npm run dev

Frontend runs at:

  http://localhost:5173

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published