Skip to content

Instantly share code, notes, and snippets.

View chrimesdev's full-sized avatar

Adam Chrimes chrimesdev

View GitHub Profile

Branching strategy

  • Create a new feature branch locally
  • Run the application with npm run watch
  • Make your changes (app/views is usually the only folder you'll need to worry about).
  • Push the changes to your branch, this will create a remote branch on GitHub
  • Visit GitHub in the browser and open a pull request to merge into the develop branch
  • Once this has been merged into the develop branch, this will automatically deploy to the testing environment
  • Review the changes on the testing environment
  • If you're happy with the changes, open a pull request to merge develop into the master branch to release to live
// Requiring fs module
const fs = require("fs");
// Read the existing clientDetails.json file and store it
var data = fs.readFileSync("clientDetails.json");
var existingObject = JSON.parse(data);
// Hardcoded variables for testing
let client_name = "Ryan";
let random_num = 43;