A secure, production-ready React application template with built-in authentication, authorization, and organization management.
- Node.js 18+
- pnpm
- PostgreSQL
- Clone the repository:
git clone https://github.com/yourusername/template-secure-react-router.git
cd template-secure-react-router- Install dependencies:
pnpm install- Set up environment variables:
cp .env.example .envEdit .env with your configuration.
- Set up the database:
# Generate Prisma client
pnpm prisma:generate
# Run database migrations
pnpm prisma:migrate- Start the development server:
pnpm devThe application will be available at http://localhost:3000.
pnpm dev- Start development serverpnpm build- Build for productionpnpm start- Start production serverpnpm test- Run testspnpm typecheck- Type check the applicationpnpm format- Format code with Prettierpnpm prisma:studio- Open Prisma Studio (database UI)
For detailed documentation, please refer to the docs directory: