dp-developer-site

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 16 Imported by: 0

README

dp-developer-site

A Go application that generates the HTML pages for the developer hub for ons.gov.uk.

Available at developer.ons.gov.uk.

Getting started

To run this app you'll need certain versions installed:

Language version
Go >= 1.20.3
Node = 14.21.3
Python >= 3.9.2

These versions are what the pipeline will build with.

Development

The templates that make up the developer hub are available in /templates.

Static pages, such as the introduction are in /static.

The most common use case will be to update files and watch them change on the local site:

to watch the files for changes and host them run:

make watch-serve

or, with a custom port:

make watch-serve PORT=8000
Other notable commands are as follows

To watch and automatically rebuild the site on any changes to any .go, .md or .tmpl file run:

make watch

To only serve the built assets (on default port of 23600) run:

make serve

...which has an optional PORT environment variable, for example:

make server PORT=8000
Configuration
Environment variable Default Description
PORT 23600 The port to serve the files on
Contributing

See CONTRIBUTING for details.

License

Copyright © 2017-2023, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL