Nestjs + Svelte Template
git clone https://github.com/Luxw098/nestjs-svelte-template
cd nestjs-svelte-template
bun run setup
bun run db
If you want the Prisma ORM.
bun run dev
- Edit
backend/src/app.module.ts
to configure controllers and providers.
- Backend API
- Prisma ORM
- Accounts & JWTCookie Authentication (Prisma Required)
- Socket.IO Server
- Edit
backend/prisma/schema.prisma
to configure your database.
- Default database is
SQLite
- run
bun run db
to update the database
- If applicable, edit
backend/.env
to configure your database URL
.
- Setup ports at these locations:
backend/src/main.ts
for NestJS/Back-end PORT
frontend/vite.config.ts
for Vite/Front-end PORTS
- Run
bun run dev
to start the server.
bun run build
to generate the production build.
bun run start
to start the production server.
