Skip to content

Commit

Permalink
Merge pull request #6 from simonireilly/patch/improve-readme-and-export
Browse files Browse the repository at this point in the history
Improve the README with a quickstart example
  • Loading branch information
simonireilly authored Jun 9, 2022
2 parents 8f58135 + ebed82c commit da4707d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@

Currently programmatic usage is the only supported usage method:

Create a new project with typeorm if you haven't got one

```bash
npx typeorm init --name basic --database postgres
```

Add the package as a dev dependency:

```bash
yarn add typeorm-erd
yarn add --dev typeorm-erd
```

Render the ERD from your local machine:

```ts
// src/data-source.ts
import { MermaidErd } from "typeorm-erd";
Expand Down Expand Up @@ -52,7 +62,6 @@ erDiagram
## TODO

- [ ] When relation is nullable use `o{` relation to show zero or more
- [ ] Publish to NPM to allow usage in other modules

## Shoulders

Expand Down

0 comments on commit da4707d

Please sign in to comment.