Skip to content

web/Dynamic-Website-Template

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 24, 2021 18:31
April 14, 2022 13:32
April 14, 2022 14:21
tmp
February 21, 2021 12:48
uat
February 24, 2022 07:57
April 14, 2022 14:21
January 24, 2021 18:31
April 14, 2022 13:36
April 14, 2022 13:32
January 24, 2021 18:58
April 14, 2022 12:05
April 24, 2021 20:24
September 30, 2022 17:33
January 24, 2021 18:31

Getting Started

This template is designed to be installed inside a Codio box. To to this, open the terminal and run the following command:

$ curl -sL https://bit.ly/3htttku | bash

This will configure the box ready for you to start development.

The process can take up to 15 min. Make sure you don't close the browser tab or let your computer go into sleep mode.

To run the server you need to run the following:

$ deno task run

The website database has been added with a root password of p455w0rd and a single accounts table which is pre-configured with a single account:

username: doej

password: p455w0rd

There is a secure page called Foo Bar which can be accessed at the /foo route. You will need to delete this and replace with your own secure content.

User Acceptance Testing

Before running UATs on your website make sure you go the Project > Settings screen and turn off PROTECT DYNAMIC PORTS.

You will need to update the url variable in each script to point to your own Codio web server.

$ deno test --allow-all --unstable uat/

Remember that you will need to run the tests from your desktop computer and that the web server must be running.

The Database

This Codio box comes with MySQL installed and ready to use. In addition to the root account there is a low-privilege account called websiteuser that is used by the API.

  • root password: p455w0rd
  • websiteuser password: `websitepassword

You will need to log in to the mysql-client CLI tool using the root account which will allow you to modify the database schema.

Frequently-Asked Questions

If you get stuck your first step should be to see if this is a problem that others have already encountered. There is a comprehensive FAQ document that gives solutions to the most common problems.

Frequently-Asked Questions

You should check this document before asking your module leader for help.

v10.4.0

v6.5.1