Websitebuilder demo
Laconically: Through a form that accepts data and images served by a web app, produce dynamically static websites through 11ty and served via NGINX running in docker on different subdomains.
Checkout this blog post on Medium for more details.
Installation
Clone the repo:
git clone https://github.com/kyrcha/websitebuilder.git
Install the app dependencies:
npm install
Running the app
First run an NGINX webserver:
docker run --name webserver -d -p 8080:80 nginx
and check with your browser that it works at http://localhost:8080/
run the app:
$ npm run start
and check with your browser that is works at http://localhost:3000/
Working the app
- Submit the form.
- Alter your hosts file to check it locally. More details on how to do that in the post.
- Check it locally by going with your browser to: http://.example.com
Be careful, there is no validation so enter a standard slug.