This is an example showing how create a blog with SvelteKit and tRPC.
Clone the project
git clone [email protected]:Estelle-K/blog-name.git
Go to the project directory
cd blog-name
Install dependencies
npm install
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
.
Add schema prisma
npx prisma db push
Install seed if you want to test the app
npx prisma db seed
See data in prisma
npx prisma studio
npm run dev
You can see the app: http://127.0.0.1:5173/