Serves static webpage with authentication implemented with firebase authentication.
You need to create a firebase project and enable google authentication to use it.
Create a collection named admin
at firestore and add documents with the following fields.
email
: email address of the user. Must be the same as the email address of the google account.
If you want to change the name of the collection, you can change it by declaring the environment variable FIRESTORE_ADMIN_COLLECTION
. See .env.sample for more details.
Create a .env
file at the root directory and fill in the values.
.env.sample is a sample file that you can use. See the comments in the file for more details.
Build static pages with your preferred static site generator and run the docker image with the source files generated. See Basic Dockerfile Example for more details.
Any contribution is welcome. Please feel free to open an issue or a pull request.