Skip to content

AuroHeim/auroheim.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AuroHeim Booking System — Netlify Setup Guide

What's in this folder

auroheim/
├── netlify.toml              ← Netlify config
├── package.json              ← Dependencies
├── netlify/functions/        ← Serverless backend
│   ├── _utils.js             ← Shared auth utilities
│   ├── admin-login.js        ← POST /api/admin-login
│   ├── create-booking.js     ← POST /api/create-booking
│   ├── get-booking.js        ← GET  /api/get-booking?code=AH-XXXX
│   ├── booked-dates.js       ← GET  /api/booked-dates
│   ├── admin-bookings.js     ← GET  /api/admin-bookings (admin)
│   └── update-booking.js     ← POST /api/update-booking (admin)
└── public/
    ├── index.html            ← Main brochure (copy from outputs)
    ├── rooms.html            ← Rooms page (copy from outputs)
    └── booking.html          ← Booking system ✓

Step-by-step Netlify deployment

1. Create a GitHub repo

  • Go to github.com → New repository → name it auroheim
  • Set to Public, no README needed

2. Upload all files

  • Upload the entire folder contents into the repo
  • Also copy index.html and rooms.html from your previous outputs into public/

3. Connect to Netlify

  • Go to app.netlify.com → "Add new site" → "Import an existing project"
  • Connect your GitHub account → select the auroheim repo
  • Build settings:
    • Build command: (leave empty)
    • Publish directory: public
  • Click Deploy site

4. Set environment variables (CRITICAL)

Go to: Site settings → Environment variables → Add these:

Key Value
ADMIN_USERNAME AuroHeim_Admin
ADMIN_PASSWORD AuroHeim_EnriquezAdmin1767
ADMIN_SECRET any random 32+ char string e.g. xK9#mP2$qL7nR4vT8wZ1cY5jU3bE6hN0

⚠️ Never share or commit these values. They live only in Netlify's dashboard.

5. Enable Netlify Blobs

  • Go to: Site settings → Data & Edge → Blobs
  • Enable it (it's free on the Starter plan)

6. Redeploy

  • Go to Deploys tab → "Trigger deploy" → "Deploy site"
  • Wait ~1 minute for it to go live

7. Your URLs

  • Main site: https://your-site-name.netlify.app
  • Booking page: https://your-site-name.netlify.app/booking.html
  • Admin: click "Admin" button on the booking page (top right nav)

Admin usage

  1. Go to booking.html → tap Admin in the top nav
  2. Login with:
    • Username: AuroHeim_Admin
    • Password: AuroHeim_EnriquezAdmin1767
  3. Look up bookings by code, or browse all bookings
  4. Confirm → blocks those dates for all future guests
  5. Reject → releases the dates back to available
  6. Sessions expire after 55 minutes automatically

Custom domain (optional)

  • In Netlify: Site settings → Domain management → Add custom domain
  • e.g. auroheim.com or book.auroheim.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors