Skip to content

jleja/svelte-demo-app

Repository files navigation

SvelteKit Demo App

Using Prisma and Postgres

The SvelteKit Demo app, powered by create-svelte, and updated to use Prisma and Postgres. Hosted on Heroku: https://svelte-blog-demo-app.herokuapp.com/todos Since Heroku eliminated free plans, the app is now hosted on Railway: https://web-production-87f5.up.railway.app/todos.

Heroku to Railway migration

Migrating the app from Heroku to Railway was super easy. They have a blog post that walks you through it. The post is based on migrating a Rails app, but the steps were fairly similar -- deploy the repo from GitHub, import your environment vairables, and add a new Postgres service. Add, then remove, a new environment variable after adding the Postgres service, which will trigger a deploy. Test the URL and you should be in business!

Developing

Aside from your normal dev dependencies (npm, git, homebrew):

  • Install Docker
  • Check out this repo and run npm ci

Once you've installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

You can preview the production build with npm run preview.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published