Skip to content

bumsyalao/code-test-fs-auth-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Full-Stack Authentication Application

This repository contains a production-ready authentication system with React frontend and NestJS backend. The application allows users to sign up, sign in, and access protected routes.

Project Structure

The project is divided into two main directories:

  • /frontend - React TypeScript application
  • /backend - NestJS application with MongoDB integration

Features

  • User authentication (signup/signin)
  • JWT-based session management
  • Protected routes
  • Form validation
  • Secure password storage with bcrypt
  • MongoDB database with Mongoose ORM

Getting Started

Prerequisites

  • Node.js (v20 or higher)
  • MongoDB (local instance or MongoDB Atlas)
  • npm or yarn

Installation

  1. Clone the repository:
git clone git@github.com:bumsyalao/code-test-fs-auth-app.git
cd code-test-fs-auth-app
  1. Install dependencies and start the application:
# Install and start the backend
cd backend
npm install
npm run start:dev

# In a separate terminal, install and start the frontend
cd frontend
npm install
npm start
  1. Open your browser and navigate to http://localhost:3000

Development

To run both applications in development mode with hot reloading:

# In the backend directory
npm run start:dev

# In the frontend directory
npm start

Testing

Both applications include test suites that can be run with:

# In either the frontend or backend directory
npm test

Demo

1 2

Project Documentation

See the separate README files in the frontend and backend directories for detailed instructions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors