Svelte 5 Ready!
Startup your website's CMS easily! Includes basic auth using JWT & cookies, CRUD for users, and a setting to add/remove allowed hosts to link your websites.
git clone https://github.com/silverlunah/cms-starter.git
Start with Docker first to initialize DB. But during development, local is faster.
This is similar to how you will run the project in production.
npm run docker:up
npm run docker:down
npm run docker:restart
Recommended during development.
This is using concurrently
so you can just take down both processes using ctrl+c / cmd+c
npm run local:up
You might encounter an error if MySQL is not running or not matching the .env database string generated by this script. Check backend/.env
to see the initial config. DB name by default is the name
in package.json
.
NOTE: This is just important for the first run so you could get the project working. If you want to use custom configurations, feel free to remove/modify these scripts from package.json
and /scripts
directory
npm run local:backend:up
npm run local:frontend:up
schema.prisma
npm run prisma:update:table
npm run prisma:migrate:reset
On first login, you can use:
ports:
- "3006:3006"