forked from dziraf/admin-bro-mikroorm
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Metadata structure's changed in MikroORM v6. The adapter setup remains the same, but access to some information's changed so this version will only work with MikroORM v6+.
- Loading branch information
Showing
20 changed files
with
5,181 additions
and
3,887 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,29 @@ | ||
## Local setup | ||
|
||
Prepare database service: | ||
```bash | ||
$ docker-compose up -d | ||
$ cp example.env .env | ||
``` | ||
|
||
Default env vars should work if you used docker-compose to setup Postgres. | ||
|
||
Build app, setup database schema, run app: | ||
|
||
```bash | ||
$ yarn | ||
$ yarn build | ||
$ yarn db:setup | ||
$ yarn start | ||
``` | ||
|
||
Optionally: you can link local `@adminjs/mikroorm` if you plan to make changes. | ||
|
||
```bash | ||
$ cd .. # return to root directory | ||
$ yarn link # create a link to local package | ||
$ yarn clean && yarn build # clean workdir and build local package | ||
$ cd example-app # return to example app | ||
$ yarn link "@adminjs/mikroorm" | ||
``` | ||
You should now see your local changes in `@adminjs/mikroorm`. Make sure to re-run the example app whenever you make changes, or setup nodemon. |
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
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
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
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
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
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
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
Oops, something went wrong.