Giter Club home page Giter Club logo

defra.ffc-template-node's Introduction

FFC Template Node

Template to support rapid delivery of microservices for FFC Platform. It contains the configuration needed to deploy a simple Hapi Node server to the Azure Kubernetes Platform.

Usage

Create a new repository from this template and run ./rename.js specifying the new name of the project and the description to use e.g.

./rename.js ffc-demo-web "Web frontend for demo workstream"

The script will update the following:

  • package.json: update name, description, homepage
  • docker-compose.yaml: update the service name, image and container_name
  • docker-compose.test.yaml: update the service name, image and container_name
  • docker-compose.override.yaml: update the service name, image and container_name
  • Rename helm/ffc-template-node
  • helm/ffc-template-node/Chart.yaml: update description and name
  • helm/ffc-template-node/values.yaml: update name, namespace, workstream, image, containerConfigMap.name
  • helm/ffc-template-node/templates/_container.yaml: update the template name
  • helm/ffc-template-node/templates/cluster-ip-service.yaml: update the template name and list parameter of include
  • helm/ffc-template-node/templates/config-map.yaml: update the template name and list parameter of include
  • helm/ffc-template-node/templates/deployment.yaml: update the template name, list parameter of deployment and container includes

Notes on automated rename

  • The Helm chart deployment values in helm/ffc-template-node/values.yaml may need updating depending on the resource needs of your microservice
  • The rename is a one-way operation i.e. currently it doesn't allow the name being changed from to be specified
  • There is some validation on the input to try and ensure the rename is successful, however, it is unlikely to stand up to malicious entry
  • Once the rename has been performed the script can be removed from the repo
  • Should the rename go awry the changes can be reverted via git clean -df && git checkout -- .

Licence

THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:

http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3

The following attribution statement MUST be cited in your products and applications when using this information.

Contains public sector information licensed under the Open Government license v3

About the licence

The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.

It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.

defra.ffc-template-node's People

Contributors

johnwatson484 avatar paulsimonandrews avatar st3v3nhunt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.