This project is a full-stack Next.js template configured as a monorepo using TurboRepo. It integrates several modern web development tools and frameworks, providing a robust starting point for building scalable applications.
- Next.js: The React framework for production.
- TailwindCSS: A utility-first CSS framework for rapid UI development.
- Prisma: Next-generation ORM for Node.js and TypeScript, set up with PostgreSQL.
- Recoil: A state management library for React.
- NextAuth.js: Complete open-source authentication solution for Next.js applications.
Ensure you have the following installed:
- Node.js (v14.x or later)
- npm/yarn
- PostgreSQL (local or remote)
-
Clone the repository:
git clone <repository-url> cd <repository-name>
-
Install dependencies:
yarn install # or npm install
-
Set up your environment variables:
app/web/.env
JWT_SECRET=test NEXTAUTH_URL=http://localhost:3000
packages/db/.env
DATABASE_URL="postgresql://postgres:root@localhost:5432/postgres"
Run the development server across packages:
yarn dev
# or
npm run dev
Navigate to http://localhost:3000
to see your application in action.
Navigate to signin page at http://localhost:3000/api/auth/signin
To build all packages for production, run:
yarn build
# or
npm run build