0.0.15 • Published 1 year 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@latest
Init 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_url
Update svelteCMS
Simple, just run the same command
npx sveltecms-init@latest