This project is a simple CRUD (Create, Read, Update, Delete) application built using Svelte for the frontend and Prisma ORM for database interactions. It serves as a starting point
Ensure you have the following installed:
Clone the repository:
git clone https://github.com/AayushPaigwar/svelte-prisma-crud.git
cd svelte-prisma-crud
Install dependencies:
npm install
Generate Prisma Client:
npx prisma generate
Set up the database:
npx prisma migrate dev --name init
Start the development server:
npm run dev
Open the app:
Navigate to http://localhost:5173 in your browser.
svelte-prisma-crud
├── prisma
│ ├── schema.prisma
│ └── migrations
├── src
│ ├── lib
│ │ └── prisma.js # Prisma client
│ ├── routes # SvelteKit routes
│ │ ├── add-post # Add post route
│ │ └── delete-post # Delete post route
│ │ └── +layout.svelte # Edit post route
│ │ └── +page.server.js # Server-side code
│ │ └── +page.svelte # Page component
│ └── app.css
│ └── app.html
├── static
│ └── favicon.png # Favicon image
├── .gitignore
├── package.json
├── README.md
└── svelte.config.js
Contributions are always welcome! Please ensure that your PR is well-tested and follows the steps below:
git checkout -b feat/new-feature
)git commit -am 'Add new feature'
)git push origin feat/new-feature
)Distributed under the MIT License. See LICENSE
for more information.