Skip to content

ics-software-engineering/nextjs-application-template

Repository files navigation

ci-nextjs-application-template

For details, please see http://ics-software-engineering.github.io/nextjs-application-template/.

Installation

  1. Install PostgreSQL and create a database for your app:

    createdb nextjs-application-template
  2. Clone this template (or use the "Use this template" button on GitHub to create your own repo).

  3. Install dependencies:

    npm install
  4. Create your .env file:

    • Copy sample.env to .env and update the DATABASE_URL to match your PostgreSQL setup.
  5. Run database migrations:

    npx prisma migrate dev
  6. Generate Prisma client:

    npx prisma generate
  7. Seed the database:

    npm run seed
  8. Start the development server:

    npm run dev

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

See the template documentation for more details and walkthroughs.