Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r48n34/db-erd-gen

πŸ—ƒοΈ Free DrawSQL like website
https://github.com/r48n34/db-erd-gen

knex kysely postgresql sql website

Last synced: 7 days ago
JSON representation

πŸ—ƒοΈ Free DrawSQL like website

Awesome Lists containing this project

README

        

# πŸ’Ύ db-erd-gen

✏️ Free DrawSQL like website but free forever

![https://db-erd-gen.vercel.app/](/assert/banners.jpg)

URL:
https://db-erd-gen.vercel.app/

## πŸ’‘ Features
1. Free forever and open sources.
2. Save SQL in various DB format.
3. Easy to use / store GUI website.
4. Low learning curve UI.
5. No server involved, all in local.

## πŸ”Š Current supported output
- Postgres raw
- MySQL / MariaDB raw
- SQLite raw
- knex.js
- kysely ts types
- kysely Postgres
- kysely sqlite
- Typescript types
- Zod scheme types
- Yup scheme types
- Valibot scheme types
- Prisma Postgres
- Prisma MySQL
- mikro-orm (Todo)
- Mongoose Scheme (TBC)

## πŸ—ΊοΈ Roadmap
- βœ… With Zod type checking
- βœ… Update Maininte to v7
- ⬜️ i18n adapts
- ⬜️ mikro-orm & Mongoose Scheme adapts

## πŸ“ Todo
- βœ… Support kysely db migrate types output
- βœ… Support kysely ts types output
- βœ… Support SQLite types output
- βœ… Support MySQL / MariaDB types output
- βœ… Support typescript normal types
- βœ… Support zod types generate
- βœ… Support Tables CRUD code for several frameworks
- ⬜️ Add enums options and input for enums
- ⬜️ Support defaultTo string in general
- ⬜️ Support defaultTo string in kysely
- βœ… Support Prisma types output
- βœ… Add UNIQUE types
- βœ… Support sqlite types output
- ⬜️ More features
- βœ… Update UI
- ⬜️ Testing vitest

## 🏠 Self hosting (Nodejs base)
1. Clone the project to your environment.
```bash
git clone https://github.com/r48n34/db-erd-gen.git
```

2. Install packages with npm / yarn.
```bash
# Install with yarn for samples
yarn
```

3. Start the project with dev mode.
```bash
# Start with dev
yarn dev
```

4. Build the project.
```bash
# Build to production
yarn build
```

5. Preview the build project.
```bash
yarn preview
```

## 🐳 Self hosting (Docker)
1. Build the docker container with the following command.
```bash
docker build . -t db-erd-gen
```

2. After builded, run the container.
```bash
docker run -d -p 5174:5174 db-erd-gen:latest
```

## License
Distributed under the `MIT License`.