Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for people who cannot install the prototype kit on their computers (Issue/70) #152

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion app/views/how-tos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ <h2 class="nhsuk-heading-s">Download and install</h2>
<a href="/install/advanced">Advanced install guide</a>
</li>
<li>
<a href="/install/nhs-england-windows-laptops">Set up the prototype kit on an NHS England Windows laptop</a>
<a href="/install/nhs-england-windows-laptops">Set up the kit on an NHS England Windows laptop</a>
</li>
<li>
<a href="/install/codespaces">Install and use the kit with your web browser</a>
</li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/install/check-it-works.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="nhsuk-grid-column-two-thirds">

<h1>
<span class="nhsuk-caption-l">Step 8 of 8{{[":", operatingSystem ] | join(" ") if operatingSystem }}</span>
<span class="nhsuk-caption-l">Step 8 of 8{{[":", installEnvironment ] | join(" ") if installEnvironment }}</span>
Check it works
</h1>

Expand Down
41 changes: 41 additions & 0 deletions app/views/install/codespace.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% set installEnvironment = "Codespaces" %}
{% set steps_total = "2" %}

{% extends 'layout.html' %}

{% block beforeContent %}
{{ breadcrumb({
items: [
{
href: "/",
text: "Home"
},
{
href: "/install/",
text: "Get started"
}
],
href: "/install/codespaces/",
text: "Install and use the kit with your web browser"
}) }}
{% endblock %}

{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

<h1>
<span class="nhsuk-caption-l">Step
{{ current_step }}
of
{{ steps_total }}{{[":", installEnvironment ] | join(" ") if installEnvironment }}</span>
{% block stepHeader %}{% endblock %}
</h1>

{% block page_content %}{% endblock %}

{% block pagination %}{% endblock %}

</div>
</div>
{% endblock %}
84 changes: 84 additions & 0 deletions app/views/install/codespaces/create-a-codespace.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{% set installEnvironment = "Codespaces" %}
{% set current_step = '1' %}

{% block pageTitle %}
Create a codespace - NHS prototype kit
{% endblock %}

{% extends 'install/codespace.html' %}

{% block beforeContent %}
{{ breadcrumb({
items: [
{
href: "/",
text: "Home"
},
{
href: "/install/codespaces/",
text: "Install the kit in your web browser"
}
]
}) }}
{% endblock %}

{% block stepHeader %}
Create a Codespace
{% endblock %}

{% block page_content %}

<p class="nhsuk-lede-text">To use the kit within a Codespace you will first need to create one.</p>

<h2>1. Go to the prototype repository</h2>

<p>Go to the GitHub repository for the prototype you wish to use. For this guide we will be using the
<a href="https://github.com/nhsuk/nhsuk-prototype-kit">NHS prototype kit repository</a>.
</p>

<h3>If you do not have a prototype repository</h3>

<p>It is not possible right now to install the kit in a new Github repository unless you can install software on your computer.</p>

<p>You can try using Codespaces with the <a href="https://github.com/nhsuk/nhsuk-prototype-kit">NHS prototype kit repository</a>. You will not be able to save your progress.</p>

<h2>2. Create a new Codespace</h2>

<p>On every Github repository page is a 'Code' button which is used to get a copy of or to use the code held within the git repository.</p>

<p>Locate the button, click it, a dialogue box will open, at the top of the dialogue click the 'Codespaces' tab.</p>
<p>Next click on the 'Create codespace on main' button. Which will open your new codespace in a new browser tab or window.</p>

<p><img class="app-img-guide nhsuk-u-margin-bottom-0" alt="Screenshot of the location of create a codespace on main button" src="/images/codespaces/create-a-codespace.png"></p>
<p>The 'Create codespace on main' button will either be shown as a large button or a small plus symbol after the label 'your workspaces in the cloud'.</p>

<h2>3. Wait for the Codespace setup to finish</h2>

<p>The Codespace will open in a new tab (or window) and begin the setup process.</p>

<p>You will see an interface building with a progress message showing that the space (known as a 'container') is being created or rebuilt.</p>

<p>This can take between 30 seconds and 5 minutes.</p>

<h2>4. Check that it has worked</h2>

<p>Once the Codespace has been created, you will then see the 'terminal' tab with commands being exectuted to start the prototype kit.</p>
<p>When the prototype has started it will open a preview window displaying the homepage of the prototype.</p>


<p><img class="app-img-guide nhsuk-u-margin-bottom-0" alt="Screenshot of the running codespace" src="/images/codespaces/running-codespace.png"></p>

<p>You now have a copy of the NHS prototype kit installed and running within a new GitHub Codespace.</p>

<p>This means you can create and edit prototypes entirely in your browser.</p>

{% endblock %}

{% block pagination %}
{{ pagination({
"previousUrl": "/install/codespaces/index",
"previousPage": "Get started",
"nextUrl": "/install/codespaces/working-with-codespaces",
"nextPage": "Step 2: Working with Codespaces"
}) }}
{% endblock %}
65 changes: 65 additions & 0 deletions app/views/install/codespaces/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{% extends 'layout.html' %}

{% block pageTitle %}
Install and use the kit with your web browser - NHS prototype kit
{% endblock %}

{% block beforeContent %}
{{ breadcrumb({
items: [
{
href: "/",
text: "Home"
},
{
href: "/install/",
text: "Get started"
}
]
}) }}
{% endblock %}

{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

<h1 class="nhsuk-heading-xl">Install and use the kit with your web browser</h1>

<p class="nhsuk-body-l">If you cannot install the kit on your computer (for example, because you are not allowed to install Node.js) you can use an online service to edit and run code using your web browser.</p>

<p>Services that you can use include:<p>

<ul>
<li>
<a href="https://github.com/features/codespaces">GitHub Codespaces</a> – free for around 60 hours per month
</li>
<li>
<a href="https://www.gitpod.io/">Gitpod</a> – free for around 50 hours per month
</li>
</ul>

<p>For this guide we are using GitHub Codespaces.</p>

<h2 class="nhsuk-heading-l">Before you begin</h2>

<p>You do not need any technical knowledge to use this guide.</p>

<p>You will need a
<a href="https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out">GitHub account</a>.
</p>

<p>We will show you how to:</p>
<ul class="nhsuk-list nhsuk-list--bullet">
<li>set up the Codespace
</li>
<li>work with the Codespace</li>
</ul>
<p>
Installation usually takes up to 5 minutes.
</p>

{{ actionLink({ text: "Start guide for using the kit in a web browser", href: "/install/codespaces/create-a-codespace", classes: "nhsuk-u-margin-top-x nhsuk-heading-l" }) }}

</div>
</div>
{% endblock %}
66 changes: 66 additions & 0 deletions app/views/install/codespaces/working-with-codespaces.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{% set installEnvironment = "Codespaces" %}
{% set current_step = 2 %}

{% block pageTitle %}
Editing the kit with Codespaces - NHS prototype kit
{% endblock %}

{% extends 'install/codespace.html' %}

{% block beforeContent %}
{{ breadcrumb({
items: [
{
href: "/",
text: "Home"
},
{
href: "/install/codespaces/",
text: "Install the kit in your web browser"
}
]
}) }}
{% endblock %}

{% block stepHeader %}
Editing the kit with Codespaces
{% endblock %}

{% block page_content %}

<p class="nhsuk-lede-text">If you are using the browser to edit the kit, you need to manage changes in Codespaces.</p>

<h2>Save changes</h2>

<p>Changes you make are not shared with anybody else until you commit them to Git and push them to the repository.</p>

<p>You can use the Codespace code editor and user interface to manage changes with GitHub. You can use the
<a href="https://docs.github.com/en/codespaces/getting-started/quickstart#committing-and-pushing-your-changes">quickstart guide for working with Codespaces</a>
</p>

<h2>Manage prototypes</h2>

<p>When a Codespace is deleted, you will lose any changes you have not commited and pushed to a repository.</p>
<p>GitHub Codespaces are automatically deleted after they have been stopped and have remained inactive for a defined number of days, default is 30 days.</p>



<h2>Publish prototypes online</h2>

<p>Codespaces are temporary and do not usually have passwords. Do not use them to <a href='/how-tos/publish-your-prototype-online'>publish your prototypes online</a>.</p>

<h2>Get going</h2>

<p>
<a href="/how-tos/build-basic-prototype/index">Build a basic prototype</a>
or
<a href="/how-tos/index">view other guides</a>.</p>

{% endblock %}

{% block pagination %}
{{ pagination({
"previousUrl": "/install/codespaces/create-a-codespace",
"previousPage": "Step 1: Create a Codespace"
}) }}
{% endblock %}
2 changes: 1 addition & 1 deletion app/views/install/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="nhsuk-grid-column-two-thirds">

<h1>
<span class="nhsuk-caption-l">Step 4 of 8{{[":", operatingSystem ] | join(" ") if operatingSystem }}</span>
<span class="nhsuk-caption-l">Step 4 of 8{{[":", installEnvironment ] | join(" ") if installEnvironment }}</span>
Download and decide where to keep your prototypes
</h1>

Expand Down
78 changes: 50 additions & 28 deletions app/views/install/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,61 @@
{% extends 'layout.html' %} {% block pageTitle %} Get started - NHS prototype
kit {% endblock %} {% block beforeContent %} {{ breadcrumb({ href: "/", text:
"Home" }) }} {% endblock %} {% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-xl">Get started</h1>
{% extends 'layout.html' %}

<p>To use the kit you'll need some basic knowledge of HTML, for example what tags and attributes are and how to copy and paste code.</p>
{% block pageTitle %}
Get started - NHS prototype kit
{% endblock %}

{% block beforeContent %}
{{ breadcrumb({ href: "/", text: "Home" }) }}
{% endblock %}

{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-xl">Get started</h1>

<p>To use the kit you'll need some basic knowledge of HTML, for example what tags and attributes are and how to copy and paste code.</p>

<p>You can learn basic HTML and CSS at <a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started">mdn</a>, <a href="https://www.codecademy.com">codecademy</a> or other online tutorials.</p>
<p>You can learn basic HTML and CSS at
<a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started">mdn</a>,
<a href="https://www.codecademy.com">codecademy</a>
or other online tutorials.</p>

<p>You'll also need to install some other tools and software.</p>
<p>You'll also need to install some other tools and software.</p>

<p>Choose from the:</p>
<p>Choose from the:</p>

<ul>
<li>
<a href="/install/simple">install guide</a> – for those new to
prototyping in code
</li>
<li>
<a href="/install/advanced">advanced install guide</a> – for those
familiar with prototyping in code
</li>
</ul>
<ul>
<li>
<a href="/install/simple">install guide</a>
– for those new to prototyping in code
</li>
<li>
<a href="/install/advanced">advanced install guide</a>
– for those familiar with prototyping in code
</li>
</ul>

<h2 class="nhsuk-heading-m">NHS England Windows laptops</h2>
<h2 class="nhsuk-heading-m">NHS England Windows laptops</h2>

<p>See the <a href="/install/nhs-england-windows-laptops">guide for setting up the kit on NHS England Windows laptops</a>.</p>
<p>See the
<a href="/install/nhs-england-windows-laptops">guide for setting up the kit on NHS England Windows laptops</a>.</p>

<h2 class="nhsuk-heading-m">Updating</h2>
<h2 class="nhsuk-heading-m">If you cannot install software</h2>

<p>If you have already got an NHS prototype but need to upgrade it to the latest version, see the <a href="/how-tos/updating-the-kit">guide to updating the kit</a>.</p>
<p>If you want to use the kit but cannot install it onto your computer, see the
<a href="/install/codespaces/">guide to install and use the kit with your web browser</a>
</p>

<h2 class="nhsuk-heading-m">Switching from the GOV.UK Prototype Kit</h2>
<p>If you are new to the NHS prototype kit but are familiar with the GOV.UK Prototype Kit, you can find out <a href="/how-tos/switching-from-govuk-prototype-kit">how the NHS prototype kit is different from the GOV.UK Prototype Kit</a>.</p>
<hr>

<h2 class="nhsuk-heading-m">Updating</h2>

<p>If you have already got an NHS prototype but need to upgrade it to the latest version, see the
<a href="/how-tos/updating-the-kit">guide to updating the kit</a>.</p>

<h2 class="nhsuk-heading-m">Switching from the GOV.UK Prototype Kit</h2>
<p>If you are new to the NHS prototype kit but are familiar with the GOV.UK Prototype Kit, you can find out
<a href="/how-tos/switching-from-govuk-prototype-kit">how the NHS prototype kit is different from the GOV.UK Prototype Kit</a>.</p>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion app/views/install/mac/check-it-works.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set operatingSystem = "Mac" %}
{% set installEnvironment = "Mac" %}

{% extends "install/check-it-works.html" %}

Expand Down
2 changes: 1 addition & 1 deletion app/views/install/mac/download.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set operatingSystem = "Mac" %}
{% set installEnvironment = "Mac" %}
{% extends "install/download.html" %}

{% block branchingContent %}
Expand Down
2 changes: 1 addition & 1 deletion app/views/install/mac/node.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set operatingSystem = "Mac" %}
{% set installEnvironment = "Mac" %}
{% extends "install/node.html" %}

{% block branchingContent %}
Expand Down
Loading
Loading