Skip to content
Ashley Bibizadeh edited this page Jul 20, 2022 · 1 revision

Read to learn how to use this project to build and maintain your websites using Next JS and Shared Components

Libraries

  • Next JS (React SSR)
  • TypeScript
  • Node JS
  • Express
  • Lerna JS
  • SCSS (Sass)
  • React Testing Library
  • Jest

Overview

nextJSV5-Multi-Site

  • MonoRepo style repository.
  • Atomic Design Pattern
  • Packages (Lerna JS)

Rules

Please Do configure your Next JS App using the instructions below (consistency)

Please Do use Typescript for everything. (.ts & .tsx files only)

Please Do style your components using SCSS

Please Do write tests using React Testing Library

Current Apps

  • Demo -> https://localhost:3002 or http://localhost:3002

Install Global Dependencies

We need to install dependencies at root level using the bootstrap script. This will be auto run using the postInstall script

npm i

Run the application

Return to the project root directory and run your start script.

npm run start

Your website should be running at:

https://localhost:<<APP PORT>> or http://localhost:<<APP PORT>>

Run Production Build

Run a Production Build

npm run build

Serve Production Build

npm run serve