An Electron app to showcase the use of the drizzle
library using the electron-shadcn template as base.
Warning
This project is just for demo purposes, it will not be actively maintained.
- Node.js
- NPM
- PostgreSQL instance running
It's recomended to use Docker to run the PostgreSQL instance. You can use the following command to start a PostgreSQL instance:
docker run --name electric-drizzle-db -p 5432:5432 -d -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin postgres
-
Clone this repository
-
Install dependencies
npm install
- Update the database URL:
In the db_consts.ts
file, update the dbUrl
constant with the URL of your PostgreSQL instance.
- Push the schemas to the database
npm run db:push
- Run the app
npm run start
This project is under the MIT license. Check the LICENSE for more information.