A modern, responsive cafe website for Bake&Brew - featuring artisanal pastries and Himalayan specialty coffee in Kathmandu. Designed for easy customization and fast static hosting on AWS S3, complete with automation scripts for bucket setup, versioning, lifecycle policies, and cross-region replication.
- Responsive, mobile-friendly design
- Easy to customize (HTML, CSS, images)
- Fast static hosting on AWS S3
- Sections for menu highlights, about us, and contact
- Interactive image zoom modal
- Smooth fade-in animations and back-to-top button
- Shell automation script for full AWS S3 setup
- S3 bucket policy for public read access
- S3 versioning, lifecycle rules, and cross-region replication support
| Layer | Technology |
|---|---|
| Structure | HTML (index.html) |
| Styling | CSS (css/styles.css) - 46.5% of codebase |
| Interactivity | JavaScript (js/main.js) |
| Cloud Hosting | AWS S3 (static website hosting) |
| Automation | Shell (create-bucket.sh) |
bake-and-brew-website-on-aws-s3/
├── index.html # Main cafe website page
├── css/
│ └── styles.css # All styles and responsive design
├── js/
│ └── main.js # Image zoom, animations, back-to-top
├── images/ # Cafe photos and menu images
├── bucket-policy.json # S3 public read bucket policy
├── lifecycle.json # S3 lifecycle configuration
├── replication.json # S3 cross-region replication config
├── create-bucket.sh # Shell script: full AWS S3 setup
├── aws-s3-static-website-guide_Version2.md # Step by step deployment guide using CLI
├── README.md
└── LICENSE
git clone https://github.com/techgeek68/bake-and-brew-website-on-aws-s3.gitcd bake-and-brew-website-on-aws-s3- Edit
index.htmlto update the cafe name, menu items, hours, and contact details. - Modify styles in
css/styles.cssto match your branding. - Replace images in
images/with your own cafe photos. - Update
js/main.jsfor any custom interactions.
Option A: Follow the Guide:
See aws-s3-static-website-guide_Version2.md for a complete step by step walkthrough.
Option B: Use the Shell Script:
create-bucket.sh automates the full S3 setup. Review and update the bucket names inside the script, then run:
bash create-bucket.shThe script handles:
- Creating S3 buckets in
us-east-1(primary) andus-west-2(secondary) - Removing public access blocks
- Uploading website files
- Enabling static website hosting
- Applying the bucket policy (
bucket-policy.json) - Enabling versioning and uploading new file versions
- Applying lifecycle rules (
lifecycle.json) - Setting up cross-region replication (
replication.json)
| File | Purpose |
|---|---|
bucket-policy.json |
Grants public s3:GetObject access for static website hosting |
lifecycle.json |
Defines object lifecycle rules (transitions, expiration) |
replication.json |
Configures cross-region replication to a backup bucket |
Bake&Brew is a cozy café located in Bishalnagar, Chandol, Kathmandu, Nepal, run by the Shrestha family since 2016. The café serves artisanal pastries, fresh breads, and Himalayan specialty coffee.
Hours:
- Weekdays: 6:00 AM - 6:00 PM
- Sunday: 7:00 AM - 7:00 PM
- Closed on Saturday
Contributions, suggestions, and improvements are welcome! Please fork the repo and open a pull request.
MIT License: see LICENSE