The usual process for Next.js based apps/websites:
-
Install node modules:
$ npm i
-
Get the .env variables from Vercel (check
.env.template
), after installing Vercel CLI:$ vc link
$ vc env pull
-
run development environment:
$ npm run dev
- Preact.js
- Next.js
- Lenis
- Sass (Modules)
- Gsap
- Styled Components
- GraphQL (CMS API)
- Next-Sitemap (postbuild script)
Alongside the usual Next.js folder structure (/public
, /pages
, etc.) We've added a few other folders to keep the code easier to read:
- /assets: General Images/Videos, SVGs, and Fonts
- /components: Reusable components
- /components/views: Sections of the website
- /hooks: Reusable Custom Hooks
- /lib: Reusable Scripts and State Store
- /styles: Global styles and Styled Components partials