Deploy an exercise for your council

Copy any Selangor exercise from GitHub and publish it under your own account. There is nothing to build.

All Selangor exercises

1. Choose a repository

Open the repository for the exercise you want. The steps below use the flood planner as the example and are the same for all eight.

2. Make your own copy

Use a GitHub account that belongs to your council. Sign in first, because the template button only shows when you are signed in.

  1. Open the repository and click “Use this template”.
  2. Click “Create a new repository”.
GitHub repository page with the Use this template menu open
  1. Choose your council’s account as the owner.
  2. Type a name for your copy.
  3. Keep it Public if you will use GitHub Pages. A private repository needs a paid GitHub plan for Pages.
  4. Click “Create repository”.
GitHub form for creating the new repository

3. Publish it with GitHub Pages

This is the simplest way. Everything is done in the browser.

  1. In your new repository, open “Settings”, then “Pages” in the left menu.
  2. Under Source, keep “Deploy from a branch”.
  3. Under Branch, choose “main”.
  4. Keep the folder as “/ (root)”.
  5. Click “Save”.
GitHub Pages settings with main and root chosen

Wait a minute or two and refresh the page. Your address appears at the top, in this form:

https://YOUR-ACCOUNT.github.io/YOUR-REPOSITORY/

Other way: Vercel

Use Vercel for the landscape routine if you want vendors to upload files to a shared store. The README lists the extra settings.

  1. Click “Deploy with Vercel” beside the repository in the list above, and continue with GitHub.
  2. Follow the prompts to name your copy and deploy it. Leave the build settings as they are.
Vercel page for cloning the flood planner repository

Vercel’s free plan is for personal, non-commercial use. Check its terms, or use a paid plan for council work.

Other way: your own server

  1. On the repository page, click “Code”.
  2. Copy the address to clone with Git.
  3. Or click “Download ZIP” if you do not use Git.
GitHub Code menu with the clone address and Download ZIP

With Git, run:

git clone https://github.com/jeleowWMsdtseru/selangor-flood-planner.git

Try it on your own computer first. This needs Python, or any small web server:

cd selangor-flood-planner
python3 -m http.server 8000

Open this address in your browser. You should see the working page:

http://localhost:8000
Flood planner running from a cloned copy

Then copy the folder to your web server, such as IIS, Apache or Nginx.

4. Before you go public

The code is under the PolyForm Noncommercial licence: government bodies may use, change and deploy it. Data, posts and photos from others keep their own terms.