Skip to content

darkroomengineering/lenis-website

Repository files navigation

Lenis Website

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. Set up GSAP authentication:

    Copy .npmrc.config to .npmrc and replace GSAP_AUTH_TOKEN with your token

  4. Run development environment:

    $ pnpm dev

Stack

Code Style & Linting

Development Tools

Folder Structure

Alongside the usual Next.js folder structure (/public, /pages, etc.) We've added a few other folders:

  • /assets: General Images/Videos and SVGs
  • /components: Reusable components with their respective Sass files
  • /config: General settings (mostly Leva for now)
  • /hooks: Reusable Custom Hooks
  • /layouts: High level layout components
  • /lib: Reusable Scripts and State Store
  • /styles: Global styles and Sass partials

Deployment

  • Vercel - Hosting & Continuous Deployment
  • GitHub - Version Control