This project is meant to allow developers showcase HTML applications and present thier work to potential employers. Using the free tier of Google Appengine in most cases.
git clone https://github.com/darkmane/showcase.git
If you have a domain, you will want to configure App Engine and DNS to direct requests to the application.
The application will map the host name to a directory in a Google Cloud Storage bucket.
It follows the following rules to map a hostname to an environment variable.
- Uppercase the hostname
- Remove '-' from the resulting string
- Replace '.' with '_'
If the resulting string is not a valid environment variable, the app looks for a 'domain' query parameter.
If neither of those result in a directory, then finally it uses the original hostname as the directory.
You can add environment variables to the app.yaml
in the env_variables
section.
From within the directory with your project:
gcloud app deploy app.yaml