Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucagoslar/sveltekit-fullstack
🪚 A template for your next Svelte project.
https://github.com/lucagoslar/sveltekit-fullstack
i18n prisma stories storybook svelte sveltekit template trpc vite
Last synced: 2 days ago
JSON representation
🪚 A template for your next Svelte project.
- Host: GitHub
- URL: https://github.com/lucagoslar/sveltekit-fullstack
- Owner: lucagoslar
- License: mit
- Created: 2022-11-09T14:42:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T17:39:08.000Z (10 months ago)
- Last Synced: 2024-05-15T10:17:48.049Z (6 months ago)
- Topics: i18n, prisma, stories, storybook, svelte, sveltekit, template, trpc, vite
- Language: TypeScript
- Homepage:
- Size: 2.01 MB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sveltekit-fullstack
Everything you need to build a Svelte project with [Storybook](https://storybook.js.org/), [typesafe-i18n](https://github.com/ivanhofer/typesafe-i18n), [Prisma](https://prisma.io/) and [trpc](https://trpc.io/).
## Developing
Make sure to create a copy of `.env.example` with the name `.env` and adapt it to your requirements before running the application.
```bash
# install dependencies
npm i# apply db migrations to db
npx prisma migrate dev# seed the database (flags '--no-flush' and '--no-seed' available)
npm run seed --# run storybook
npm run storybook# or run the development server
npm run dev
```## Building
You may build for any target wanted. However, this project is preconfigured to operate on Docker. Similar to before, create a copy of `.env.example`. However, name it `.env.production` this time. Take into consideration that your application will use port `3000` in production. Before starting the service, apply any pending migrations with `prisma migrate deploy` to your database.
```bash
# build and run the image
docker-compose up --build
```