SSWConsulting / SSW.Website

Generator for ssw.com.au
https://www.ssw.com.au
Apache License 2.0
10 stars 8 forks source link
github nextjs tinacms

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:

pnpm install

Run the project locally:

pnpm dev

Build the project:

pnpm 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
pnpm install

Updating the project's dependencies

pnpm outdated

Test locally to make sure everything still works.

Local URLs

UI Testing on local

Pull Requests

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

⚠️ Warning: Changes in the mdx files must be done with TinaCMS. This is because TinaCMS maps mdx files with its fields with specific characters for customized UI (e.g., rich-text field). So avoid direct edits as they may result in build failures or go unnoticed during PR reviews.

Getting Help