-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from palmaresHQ:fix-drizzle-template
Fix-drizzle-template
- Loading branch information
Showing
3 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters