Prototype for passport journeys.
This is version 2 of the prototype; version 1 can be found at https://github.com/UKHomeOffice/passports-prototype.
git clone https://github.com/UKHomeOffice/passports-prototype-v2.git
cd
to the directory where the project is, then run:
npm install
npm start
This will build sources, and serve pages.
Visit localhost:3000 in your browser.
Gulp is used to compile and watch assets.
Browsersync watches HTML files for changes and reloads automatically on port 3001.
Visit localhost:3001 in your browser for automatic reload.
Visit https://hmpo-prototypes.herokuapp.com in your browser.
It may take a few seconds to load.
Get yourself a Heroku account and added to the prototype app.
Add the Heroku remote (that you will push to, to deploy):
heroku git:remote -a hmpo-prototypes
To deploy the master branch:
git push heroku master
Once your prototype is ready for testing, it’s time to create an archived version.
Below is a step-by-step process on how to do this.
git tag YYMMDD-feature-name
Alternatively, you can add a message with your tag, similar to commits. This is known as an annotated tag:
git tag -a YYMMDD-feature-name -m "First iteration of feature-name for lab 1"
git push --tags origin master
You should be able to see that git has pushed your tag to the remote:
To https://github.com/UKHomeOffice/passports-prototype-v2.git
* [new tag] YYMMDD-feature-name -> YYMMDD-feature-name
Tags can be checked out similar to branches.
If you're not already at the specific commit you want to archive:
git checkout YYMMDD-feature-name
Create a new branch from that specific commit/tag:
git checkout -b archive/feature-branch-name-v1
Make relevant changes, such as removing links from the startpage, the navigation bar, etc.
git commit -m “Update start page to archive feature-name lab session 1”
git push origin +archive/feature-branch-name-v1
Each prototype archive will be hosted on a separate Heroku app.
heroku apps:create --region eu hmpo-YYMMDD-feature-name -r heroku-feature-name-v1
hmpo-YYMMDD-feature-name
becomes the subdomain in the URL of the Heroku app.
heroku-feature-name-v1
is the remote added to your repository.
To deploy from another branch, where archive/feature-branch-name-v1
is the branch you want to push:
git push heroku-feature-name-v1 archive/feature-branch-name-v1:master