Everything you need to build a Svelte project with DatoCMS:
Choose Use this template
and Create new repository
directly on GitHub. Then clone repository and install dependencies:
npm install
Start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Generate Types from GraphQL Schema:
npm run generate-ts
TODO: DatoCMS manual
TODO: SSR vs SSG manual
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.