totalcms / starter-restaurant
Copper Thistle: a restaurant site for Total CMS, with a menu, daily specials, a photo gallery and a dashboard for the restaurant's staff.
Package info
github.com/totalcms/starter-restaurant
Language:Twig
Type:project
pkg:composer/totalcms/starter-restaurant
Requires
- php: >=8.2
- totalcms/cms: ^3.6.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A restaurant website built on Total CMS. It looks like a printed bill of fare in two inks, and comes with a menu, weekly specials, opening hours, a photo gallery and contact details. Every page is filled with demo content, so the site works as soon as it's installed.
Install
The easiest way is Total CMS Studio: choose New Siteā¦, pick Restaurant, and Studio sets everything up on your Mac.
With Composer:
composer create-project totalcms/starter-restaurant mysite cd mysite npm install && npm run build
Point your web server's document root at mysite/public/, then visit the site. The setup wizard creates your admin account.
Make it yours
- Content. Sign in at
/adminto edit the menu, specials, hours, gallery and restaurant details. The Help pages in the admin show how to do everyday jobs, like changing a price or adding holiday hours. - Colors. Every color comes from four settings in
css/theme.css:--yeti-hue-primary,--yeti-hue-secondary,--yeti-hue-neutraland--yeti-chroma. Change those and the cover, accents and buttons follow, in light and dark mode.DESIGN.mdexplains the whole design system. - Templates. The pages, layouts and partials are Twig files in
builder/. - CSS and JavaScript. Edit
css/andjs/, then build them withnpm run build, or keepnpm run watchrunning while you work.FRONTEND.mdhas the details.
Photos
The demo photos come from Pexels, and CREDITS.md credits each photographer. Replace them with the restaurant's own photos before the site goes live.
Going live
The site starts in Development mode, so you can edit the templates in the admin while you build. Before you deploy, set Site Environment to Production in the admin's General settings. Production keeps error messages short for visitors and makes the template editor read-only, so the live site's templates change only when you deploy them.
Requirements
PHP 8.2 or later, Node.js to build the CSS and JavaScript, and a Total CMS license for the domain you deploy to.