This is a Next.js project bootstrapped with create-next-app
.
-
Install pnpm globally (skip if you already have it installed)
foo@bar:~$ npm install -g pnpm
-
Install dependencies
foo@bar:office-gpt$ pnpm install
-
Create a
.env
file with your environment configurations using templatefoo@bar:office-gpt$ grep -v '^#' .env.example | grep -v '^$' > .env
Start the development server with hot reload
foo@bar:office-gpt$ pnpm dev
Create a production-ready build and run it locally
foo@bar:office-gpt$ pnpm preview
Lint your code using Next.js built-in eslint. Additional configuration: .eslintrc.json
foo@bar:office-gpt$ pnpm lint
Format your code using prettier. Additional configuration: prettier.config.js
foo@bar:office-gpt$ pnpm format:check
Checking formatting...
All matched files use Prettier code style!
foo@bar:office-gpt$ pnpm format:write
...