Skip to content

This is an example showing how create a blog with SvelteKit and tRPC.

Notifications You must be signed in to change notification settings

Estelle-K/blog-name

Repository files navigation

Blog example

This is an example showing how create a blog with SvelteKit and tRPC.

Badges

SvelteKitCSS3HTML5TAILWINDCSSTRPCPRISMA

Getting started

How to install

Clone the project

  git clone [email protected]:Estelle-K/blog-name.git

Go to the project directory

  cd blog-name

Install dependencies

  npm install

Create an account Planetcale and create a JWT jeton

It's necessary to duplicate the .env.example file to .env file (root folder). After that, if you have an account in Planetscale, create a new database and copy DATABASE_URL in .env file. And create a JWT jeton and copy it in JWT_SECRET.

Prisma

Add schema prisma

  npx prisma db push

Install seed

Install seed if you want to test the app

  npx prisma db seed

Use Prisma

See data in prisma

  npx prisma studio

Start the project

  npm run dev

You can see the app: http://127.0.0.1:5173/

About

This is an example showing how create a blog with SvelteKit and tRPC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published