Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 2.08 KB

PROD-README.md

File metadata and controls

66 lines (48 loc) · 2.08 KB

[PROJECT]

Setup:

The usual process for Next.js based apps/websites:

  1. Install node modules:

    $ pnpm i

  2. Get the .env variables from Vercel (check .env.template), after installing Vercel CLI:

    $ vc link

    $ vc env pull

  3. run development environment:

    $ pnpm dev

Stack:

Code Style & Linting:

  • Eslint (Next and Prettier plugins)
  • Prettier with the following settings available in .pretierrc:
    {
      "endOfLine": "auto",
      "semi": false,
      "singleQuote": true
    }
  • Lefthook

Third Party (optional tools):

Folder Structure:

Alongside the usual Next.js App Router folder structure (/public, /app, etc.) We've added a few other folders to keep the code easier to read:

  • /components: Reusable components with their respective Sass file
  • /docs: Readmes on how to use third party tools at darkroom
  • /hooks: Reusable Custom Hooks
  • /libs: Reusable Scripts and State Storing, hubspot integration, sass utils, etc.
  • /styles: Global styles and Sass partials