/SSW.Website

Generator for ssw.com.au

Primary LanguageHTMLApache License 2.0Apache-2.0

SSW.Website

SSW Banner

This repository is a v3 of the zzSSW.Website. This website uses NextJS with TinaCMS.

Watch the demo:

YouTube video

See the important Documents

Architecture Overview

architecture-diagram

Requirements

Get Started

Install the project's dependencies:

yarn install

Run the project locally:

yarn dev

Build the project:

yarn build

Get Started with Dev Container

How to

  1. Open Command Palette in VSCode
> Dev Containers: Reopen in Container
  1. Develop as you would normally

Don't want to use Dev Container any more?

  1. Close VSCode connected with the Dev Container
  2. Open project folder on host machine
  3. Remove node_modules and reinstall dependencies
yarn install

Updating the project's dependencies

yarn upgrade-interactive

Test locally to make sure everything still works.

To keep the yarn.lock file up to date, ensure syncyarnlock is installed globally:

yarn global add syncyarnlock

Then run:

syncyarnlock -s -k

Local URLs

UI Testing on local

  • 1 Make sure you have CREATE_LEAD_ENDPOINT environment variable in your .env - Follow steps to setup

  • 2 Run yarn playwright test --ui in your terminal and make sure your local instance is running in the background.

Pull Requests

Each Pull Request will be deployed to its own staging environment, the URL to the environment is available in the PR thread.

Getting Help