10000 GitHub - tuyenhn/4_sst_web_app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tuyenhn/4_sst_web_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4_sst_web_app

  • A Progressive Web Application that will let users interact with the LEDs on the number 4 located at RMIT Vietnam, Building 2, Floor 4.
  • Sister project (the code running the LEDs on the number 4 itself): https://github.com/tuyenhn/4_SST_rmit

Dependencies

Want to custom to your own domain?

  • Find and open your hosts file (guide)
  • Add at the bottom of the file 127.0.0.1 yourdomain.name
  • In app.py, add app.config["SERVER_NAME"] = "yourdomain.name:80" before app.run()
  • You can have it on ports other than 80, e.g. "yourdomain.name:5050", but you need to have a port if you are using a custom domain name

Serve over HTTPS locally

  • Download an mkcert pre-built binary (or build from source, whichever you like)
  • Run mkcert -install
  • Run mkcert yourdomain.name, 2 new files called yourdomain.name.pem and yourdomain.name-key.pem will be created and copy those 2 files to wherever your project is.
  • In your app.py, or your Flask app file, add ssl_context=("path/to/yourdomain.name.pem", "path/to/yourdomain.name-key.pem") as an app.run() parameter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0