Skip to content

Sam-Blesswin/fullstack_starter_pack

Repository files navigation

Full Stack Next.js Monorepo Template

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.

Technologies

  • 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.

Getting Started

Prerequisites

Ensure you have the following installed:

  • Node.js (v14.x or later)
  • npm/yarn
  • PostgreSQL (local or remote)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-name>
  2. Install dependencies:

    yarn install
    # or
    npm install
  3. 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"

Running the Development Server

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

Building for Production

To build all packages for production, run:

yarn build
# or
npm run build

About

Turborepo setup for fullstack project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •