Skip to content

gaievskyi/office-gpt

Repository files navigation

OfficeGPT

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

Prerequisites

  1. Install pnpm globally (skip if you already have it installed)

    foo@bar:~$ npm install -g pnpm
  2. Install dependencies

    foo@bar:office-gpt$ pnpm install
  3. Create a .env file with your environment configurations using template

    foo@bar:office-gpt$ grep -v '^#' .env.example | grep -v '^$' > .env

Develop

Start the development server with hot reload

foo@bar:office-gpt$ pnpm dev

Preview

Create a production-ready build and run it locally

foo@bar:office-gpt$ pnpm preview

Lint

Lint your code using Next.js built-in eslint. Additional configuration: .eslintrc.json

foo@bar:office-gpt$ pnpm lint

Cleanup

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