Build a basic prototype Create pages
You can create pages by using the templates that come with the Prototype Kit.
-
In your browser go to the Manage your prototype page: http://localhost:3000/manage-prototype (opens in new tab).
There is also a link to this page in the footer of your prototype.
-
In the navigation menu, go to the Templates section.
Create a Start page
-
In the list of templates, find the Start page and select Create
-
Enter
/startin Path for the new page -
Select Create page
The kit creates a page from the template in the app/views folder in your code editor.
Change the service name
You change the service name in the config file. This will change it on every page in your prototype.
-
In your code editor, go to the
appfolder and open theconfig.jsonfile. -
Change
serviceNamefrom Service name goes here to Apply for a juggling licence. -
Press Cmd+S on Mac or Ctrl+S on Windows to save your change.
-
Refresh the page in your browser.
You’ll need to save every time you make a change to a file.
Usually your changes will automatically show in the browser without refreshing. We have made a change that applies to all pages in the prototype (called a config change), so you need to refresh the page.
You should see your service name change on the Start page.
Question pages
-
In your browser, go to the Templates section of Manage your prototype
http://localhost:3000/manage-prototype/templates (opens in a new tab) -
Create a page from the Question page template.
-
Enter the path
/juggling-balls -
Create another page from the Question page template.
-
Enter the path
/juggling-trick -
Go to the following URLs to check your pages:
-
Go to your code editor.
-
To create headings on a page we use heading tags, like
<h1>for the page title,<h2>for a subheading and so on.In the
juggling-balls.htmlfile, change the text inside theh1tag fromHeading or question goes heretoHow many balls can you juggle? -
In the
juggling-trick.htmlfile, change the text inside theh1tag toWhat is your most impressive juggling trick?
Check answers page
-
In your browser, go to the Templates section of Manage your prototype http://localhost:3000/manage-prototype/templates (opens in a new tab).
-
Create a page from the Check answers template.
-
Enter the path
/check-answers
Confirmation page
-
In your browser, go to the Templates section of Manage your prototype http://localhost:3000/manage-prototype/templates (opens in a new tab).
-
Create a page from the Confirmation template.
-
Enter the path
/confirmation