Skip to content

Euricom/template-secure-react-router

Repository files navigation

Secure React Router Template

A secure, production-ready React application template with built-in authentication, authorization, and organization management.

Quick Start

Prerequisites

  • Node.js 18+
  • pnpm
  • PostgreSQL

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/template-secure-react-router.git
cd template-secure-react-router
  1. Install dependencies:
pnpm install
  1. Set up environment variables:
cp .env.example .env

Edit .env with your configuration.

  1. Set up the database:
# Generate Prisma client
pnpm prisma:generate

# Run database migrations
pnpm prisma:migrate
  1. Start the development server:
pnpm dev

The application will be available at http://localhost:3000.

Available Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm start - Start production server
  • pnpm test - Run tests
  • pnpm typecheck - Type check the application
  • pnpm format - Format code with Prettier
  • pnpm prisma:studio - Open Prisma Studio (database UI)

Documentation

For detailed documentation, please refer to the docs directory:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •