This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue
types.
See Vite Configuration Reference.
npm install
npm run dev
npm run build
npx prisma init
✔ Your Prisma schema was created at prisma/schema.prisma You can now open it in your favorite editor.
warn You already have a .gitignore file. Don't forget to add .env
in it to not commit any private information.
Next steps:
- Set the DATABASE_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started
- Set the provider of the datasource block in schema.prisma to match your database: postgresql, mysql, sqlite, sqlserver, mongodb or cockroachdb.
- Run prisma db pull to turn your database schema into a Prisma schema.
- Run prisma generate to generate the Prisma Client. You can then start querying your database.
- Tip: Explore how you can extend the ORM with scalable connection pooling, global caching, and real-time database events. Read: https://pris.ly/cli/beyond-orm
More information in our documentation: https://pris.ly/d/getting-started
Go to https://sqlite.org/download.html
and download the SQLite Bundle for Windows if your machine is 64-bit (otherwise use the 32-bit version). If you are running a Mac, CTRL + F "Bundle" and install that.