Skip to content

DDDEastMidlandsLimited/dddem-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,918 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DDD East Midlands

DDDEMWeb Deploy

Contents

Setup

Branding Guide

Contribution Guidelines

Code of Conduct

Setup

Install it:

npm install

Running the site

To run a local version of the site with hot reload run:

npm run dev

To run a local copy of the site without hot reloading, mimicking a live environment, first build the site and then serve the static files:

npm run build

Then install and use a static server, e.g.:

npm install -g serve

cd out

serve -p 8080

Running Tests

To run the test suite:

npm test

For watch mode during development:

npm run test:watch

For test coverage:

npm run test:coverage

Exporting the site

Run:

npm run build

This will build all assets and pages and export them to the out folder.

This can then be uploaded into any static site hosting.

If you want to test the exported site you can install the serve module

npm install -g serve

Then cd out and run

serve -p 8080

Branding Guide

When making aesthetic changes to the site, please try to keep to our branding.

This follows the following theme palette:

theme.palette = {
    primary: '#1A7D87',
    secondary: '#C01439',
    tertiary: '#1A1E1E',
    quaternary: '#B5C6C4',
    light: '#FFFFFF',
    dark: '#000000',
}

ESLint and Prettier

We use ESLinting rules to maintain an unopinionated codebase. You can set this up to automatically format your code in you IDE easily.

We also use pretty-quick via a husky git hook which will fix your formatting automatically or warn you if it can't before you commit your work so even if you don't have it on save then this will prevent any errors.

If you manage to push changes bypassing the above then it will also check at the build pipeline to help prevent any mistakes.

About

Nextjs Static Site for DDD East Midlands Website

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors