Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 3.24 KB

File metadata and controls

62 lines (40 loc) · 3.24 KB

Simon HTML

Simon

🔑 Required reading: Simon HTML

This deliverable demonstrates the use of basic HTML elements for structure, basic formatting, input, output, links, and drawing.

Because we are not using any CSS for styling we are limited on how visually pleasing our application is. Do not worry about that. At this point we are simply trying to provide structure and content that we will later style and make interactive.

The application has a login (home), game play, high scores, and about page. Each page contains a header that provides navigation between the pages, and a footer that references the source repository.

Simon pages

The header and footer for each page is duplicated so that we have the same navigation controls on each view. Later in the class, when we move to React, the common navigation controls will be represented by a single component, and our application will have a single HTML page (index.html).

Important

Simon provides placeholders for all of the technologies that we cover in the class. It is vital that you provide this in your Startup HTML version or you will not be able to demonstrate your mastery with each deliverable. This also helps you think about how you are going to include the technologies as they are introduced. This may mean that you have to create mocks or generated data that will be replaced later in your development.

You can view this application running here: Example Simon HTML

Simon HTML

Study this code

Get familiar with what the example code teaches.

  • Clone the repository to your development environment.

    git clone https://github.com/webprogramming260/simon-html.git
  • Review the code and get comfortable with everything it represents.

  • View the code in your browser by hosting it using the VS Code Live Server extension.

  • Make modifications to the code as desired. Experiment and see what happens.

Deploy to production

Important

Make sure you using a POSIX compliant console (not PowerShell or CMD on Windows) and that you run deployFiles.sh from the project directory that you want to deploy. If you get a permission denied error when you run the deploy script, you need to run the following command in order to give the script the right to execute.

sudo chmod +x deployFiles.sh
  • Deploy to your production environment using the deployFiles.sh script found in the example class application. Take some time to understand how the script works. The script does three things. Deletes any previous deployment for simon, copies up all of the files found in the project directory, and makes sure Caddy is hosting the files under the simon subdomain of your domain (e.g. simon.yourdomain.click).

    ./deployFiles.sh -k <yourpemkey> -h <yourdomain> -s simon

    For example,

    ./deployFiles.sh -k ~/keys/production.pem -h yourdomain.click -s simon
  • Update your startup repository notes.md with what you learned.

  • Make sure your project is visible from your production environment (e.g. https://simon.yourdomain.click).