For details, please see http://ics-software-engineering.github.io/nextjs-application-template/.
-
Install PostgreSQL and create a database for your app:
createdb nextjs-application-template
-
Clone this template (or use the "Use this template" button on GitHub to create your own repo).
-
Install dependencies:
npm install
-
Create your .env file:
- Copy
sample.envto.envand update theDATABASE_URLto match your PostgreSQL setup.
- Copy
-
Run database migrations:
npx prisma migrate dev
-
Generate Prisma client:
npx prisma generate
-
Seed the database:
npm run seed
-
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.