Skip to content

🪚 A template for your next Svelte project.

License

Notifications You must be signed in to change notification settings

lucagoslar/sveltekit-fullstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sveltekit-fullstack

Everything you need to build a Svelte project with Storybook, typesafe-i18n, Prisma and trpc.

Developing

Make sure to create a copy of .env.example with the name .env and adapt it to your requirements before running the application.

# 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.

# build and run the image
docker-compose up --build