Skip to content
No description, website, or topics provided.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
contentful
src
static
.babelrc
.eslintrc.js
.gitignore
.prettierrc
.stylelintrc
.travis.yml
LICENSE
README.md
app.json
gatsby-config.js
gatsby-node.js
output.json
package-lock.json
package.json
postcss.config.js
static.json

README.md

Buckinghamshire Council - HR Service Desk alpha

Dependencies

  • nodejs version 12.8.0

Development mode

This uses hot reloading to improve developer experience, but the site is run purely on the client side until it is built.

npm run dev

Building

To build files to ./public:

npm run build

Environment Vars

The BUILD_CONFIG=staging|production|development (defaults to development) environment variable should be used to define to the application the environment it is running in. This is separate to NODE_ENV since many libraries (React included) rely on the de-facto standard values of production|development to optimise their running.

Setting BUILD_CONFIG sets NODE_ENV automatically accordingly in webpack.js.

Live configuration

No passwords / keys etc. are kept in the repo. Configuration is via AWS secrets and through env variables in Buddy.

Development

We use a feature branch branching strategy - Gitflow:

  • When a new feature is to be added, a developer should branch from develop naming the new branch feature/[userstory-id]-[short description of new feature for humans]
  • When the work is ready (tested, linted etc.), a pull request should be opened against the develop branch.
  • A peer review should be made against the pull request and the branch subsequently merged.
  • The CI server will build from the develop branch and deploy to the staging server.

Contentful CLI

Migration and API query tools available using contentful-cli.

contentful <script> Description
login / logout Start/end a CLI tool session
content-type list --space-id xxx List all content types
content-type get --space-id xxx --id [content type id] Get a list of content type fields

CI

BuddyCI is used for the CI server.

  • The Build CI task validates all branches
  • The Build & Deploy task runs whenever an update to develop is made. This task will update the staging server.

SSH / Keys

To give BuddyCI access to the integration server, the public key (found at /environment-variables) should be added to the deploy user's ~/.ssh/authorized_keys file on the staging server.

You can’t perform that action at this time.