0.0.15 • Published 3 years ago
sveltecms-test v0.0.15
Package to add svelteCMS to your svelte kit project
Step 1: create a svelteKit project
npm create svelte@latest appName
cd appName
Make sure you select TypeScript
Since svelteCMS uses TypeScript to auto generate routes and routes objects types

Next, choose your app config

Or just add svelteCMS to an existing using npx
npx sveltecms-init@latestInit takes some optionals params
# The connection url to your mongoDB database
--dbUrl=mongodb_url
# Example
npx sveltecms-init@latest --dbUrl=mongodb+srv://someUrl:<password>-@user.mongodb.net/Step 2: run npx command
npx sveltecms-init@latest
# or pass your mongodb url
npx sveltecms-init@latest --dbUrl=mongodb_urlUpdate svelteCMS
Simple, just run the same command
npx sveltecms-init@latest