SiteBuilderplate is a start point for creating a static S3-hosted website. It has a modern stack:
Technology | Responsibility |
---|---|
NPM with Gulp | Build |
Ansible | Deploy |
Terraform | Cloud resources |
Pug | Pages |
SCSS | Design |
Bulma | UI Framework |
Visual Studio Core | Code writing |
Component architecture | Code quality |
- AWS account
- macOS or Linux (Windows is not supported)
- Ansible 2.9+
- Node.js 14.15.0+
- Visual Studio Code with plugins:
- Live Server (ritwickdey.liveserver)
- File Watcher (appulate.filewatcher)
Build the project
npm run build
NOT IMPLEMENTED!!!
npm run setup example
Deploy website to AWS
npm run deploy example
NOT IMPLEMENTED!!!
npm run destroy example
NOT IMPLEMENTED!!! you should do it manually
-
Ask the user to the AWS access key. (required)
-
Ask the user to the AWS access secret (required)
-
Ask the user to a domain name (optional) With using Terraform:
- Create S3 bucket
- Create Lambda@Edge
- Requst SSL Certificate (if domain name provided)
- Create CloudFront distribution
-
Ask the user to add a CNAME record to confirm domain owning (if domain name provided)
-
Waiting domain confirmation (if domain name provided)
-
Setup successfully finished
-
Destroy all resources if the user canceled setup
Use Cloudflare to protect your website from DDoS attacks.
Create a fork to start using the boilerplate.