Skip to content

Commit

Permalink
Merge pull request #294 from palmaresHQ:fix-drizzle-template
Browse files Browse the repository at this point in the history
Fix-drizzle-template
  • Loading branch information
nicolasmelo1 authored Nov 18, 2024
2 parents de5986e + 5d0081e commit a1a9a66
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changeset/red-days-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@palmares/databases': patch
'palmares': patch
'@palmares/drizzle-engine': patch
---

Fix drizzle template to run flawlessly
38 changes: 32 additions & 6 deletions packages/databases/templates/app/drizzle/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
# @palmares/drizzle-template
# The amazing ${appName}

To install dependencies:
This project was created using [@palmares/databases](https://www.npmjs.com/package/@palmares/databases) [Drizzle's](https://orm.drizzle.team/) template.

## Getting started

1. Install the dependencies:

```bash
$ ${packageManager} install
```

2. Run the migrations

```bash
$ ${packageManager} run migrate
```

3. Run the application

```bash
$ ${packageManager} run dev
```

## Migrations

- Generate the migrations by running

```bash
bun install
$ ${packageManager} run makemigrations
```

To run:
- Run the migrations by running

```bash
bun run index.ts
$ ${packageManger} run migrate
```

This project was created using `bun init` in bun v1.1.33. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
## Learn More

To learn more reach out to [@palmares/databases](https://www.npmjs.com/package/@palmares/databases), you can see more links on the bottom of the page
5 changes: 3 additions & 2 deletions packages/databases/templates/app/drizzle/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"target": "ES6",
"module": "ES2015",
"moduleResolution": "bundler",
"lib": ["es6"],
"allowJs": true,
"outDir": "dist",
Expand Down

0 comments on commit a1a9a66

Please sign in to comment.