Working repository for based on ReactiveConf 2019 workshop repository. The goal is to showcase a website for fictional café with Svelte, Sapper, and Kentico Kontent. The result can be deployed to ZEIT.
- Node 10+
- npm 6+
- now
-
Clone the repository
git clone https://github.com/Simply007/kontent-sample-app-svelte-sapper
-
Install the packages
npm install
-
Import content.zip data using Template manager
- Use
Project Id
andContent Management API key
from previously generated project.
- Use
-
Place the
PROJECT_ID
to thesrc/cms.js
configuration file. -
Run development environment
npm run dev
🚀 Your site is now running at http://localhost:3000!
Most of the content on the site is hard-coded. If you navigate to /offer
section the food data and it's categories is stored Kentico Kontent.
Deployment could be performed using ZEIT's Now which is fully integrated GitHub.
Build is perfomed in two steps, first you run npm run build
and then npm run export
. For more info visit Sapper documentation.
If you run npm run prettier
, the source code is formatted using Prettier.
If you run npm run test
, it will run end-to-end tests defined in /cypress
folder.
Original project was based on now-sapper-demo by @antony and then showcased on Reactive Conference 2019 in Prague on the workshop from Social Bakers by Jan Vlnas.