/nextjs-patent-cockpit

A simple Patent Cockpit to study Next.js 13

Primary LanguageJavaScript

Patent Cockpit Demo App with Next.js 13

Find a quick overview in the NOTES.md.

Setup

Database

Create a postgresql database with

createdb pc

Environment Variables

Create a file .env. Use the following as a starting point

# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="postgresql://<username>@localhost:5432/pc?schema=public"
COOKIE_PASSWORD="long_password_at_least_32_characters_long"

Web App

Install the dependencies of the web app with

npm install

Running the web app locally

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

To seed the database run

npx prisma db seed

To run/generate a migration with

npx prisma migrate dev --name <migration_name>

After the migration, update the client with

npx prisma generate

Learn More

To learn more about Next.js, take a look at the following resources:

Notes

This is a Next.js project bootstrapped with create-next-app.

License

The favicon and the name "Patent Cockpit" belong to Artemis IPM GmbH.