Skip to content

Latest commit

 

History

History
94 lines (68 loc) · 3.23 KB

README.orig.md

File metadata and controls

94 lines (68 loc) · 3.23 KB

StreetARToronto Map

An app for mapping Toronto street art projects.

🛠️ Technologies Used

💻 Local Development

See also: Development Notes in DEVELOPMENT.md

This is a simple HTML app, and so you can use any local server.

If you don't have one yet, but have Python or NPM installed on your local system, you can use those from the command line.

The following steps will make the website available at: http://localhost:8080

Python

# If Python2 is available
python2 -m SimpleHTTPServer 8080

# If Python3 is available
python3 -m http.server 8080

Node.js / NPM

npm install http-server -g
http-server -p 8080

Heroku Staging Server

To help the team demo and stay on the same page, we host a remote staging evnrironment running the app: https://cht-start-map.herokuapp.com/

It's password-protected. For access, please contact @patcon or another member of the development team.

This demo app is automatically synced with the master branch hosted on GitHub. Merging any changes to this branch will automatically deploy them to the staging environment.

Managing password-protection

This password-protection only affects Heroku.

Password protection can be enabled as disabled by toggling the basic_auth setting in static.json.

Password-protection is configured via two environment variables:

  • BASIC_AUTH_USERNAME: A plaintext username.
    • Ex: myusername
  • BASIC_AUTH_PASSWORD: A string of the "hashed" password.
    • Generate from command-line via openssl passwd -apr1 testing123
    • Ex: $apr1$mBtNMatf$9sIue48ezPSkAsE4m.GNs1

On Heroku, these environment variables are managed according to this documentation.

©️ License

MIT License