/electric-drizzle

shadcn-ui and Drizzle ORM with Electron. Based on electron-shadcn

Primary LanguageTypeScriptMIT LicenseMIT

electric-drizzle

An Electron app to showcase the use of the drizzle library using the electron-shadcn template as base.

Screenshot

Warning

This project is just for demo purposes, it will not be actively maintained.

How to run

Pre-requisites

  • 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

Steps

  1. Clone this repository

  2. Install dependencies

npm install
  1. Update the database URL:

In the db_consts.ts file, update the dbUrl constant with the URL of your PostgreSQL instance.

  1. Push the schemas to the database
npm run db:push
  1. Run the app
npm run start

License

This project is under the MIT license. Check the LICENSE for more information.