Ссылки:
KIT - is the ready for deployment template
Configured:
- Docker
- NGINX SSL auto-generation
- SvelteKit
- MongoDB
Screenshot
Clone package from GitHub
# clone this template from github
# then clone your repo localy
gh repo clone <profile>/<repo>
Install NPM packages
npm i
create .env
file in the root folder with
DOMAIN = example.com # set default domain for ssl
MONGO_USER = exampleuser # set username
MONGO_PASSWORD = exampleuserpassword # set password
# networking
FRONTEND_PORT = 8000
Change name in package.json
{
"name": "set_project_name_here",
}
Run npm script for building / testing
# auto build and deploy
npm run compile
# if you want only build run
npm run build
# for dev enviroment run
npm run dev