File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -90,3 +90,54 @@ export class Person extends BaseEntity
9090## ManyToOne
9191
9292Admin supports ManyToOne relationship but you also have to define @RealationId as stated in the example above.
93+
94+ ## Contribution
95+
96+ ### Running the example app
97+
98+ If you want to set this up locally this is the suggested process:
99+
100+ 1 . fork the repo
101+ 2 . Install dependencies
102+
103+ ```
104+ yarn install
105+ ```
106+
107+ 3 . register this package as a (linked package)[ https://classic.yarnpkg.com/en/docs/cli/link/ ]
108+
109+ ```
110+ yarn link
111+ ```
112+
113+ 4 . Setup example app
114+
115+ Install all dependencies and use previously linked version of ` @admin-bro/typeorm ` .
116+
117+ ```
118+ cd example-app
119+ yarn install
120+ yarn link @admin-bro/typeorm
121+ ```
122+
123+ Optionally you might want to link your local version of ` admin-bro ` package
124+
125+ 5 . Make sure you have all the envs set (which are defined in ` example-app/ormconfig.js ` )
126+
127+ 6 . run the app in the dev mode
128+
129+ ```
130+ yarn start:dev
131+ ```
132+
133+ ### Pull request
134+
135+ Before you make a PR make sure all tests pass and your code wont causes linter errors.
136+ You can do this by running:
137+
138+ ```
139+ yarn lint
140+ yarn test
141+ ```
142+
143+ or with proper envs: ` POSTGRES_USER=yourtestuser POSTGRES_DATABASE="database_test" yarn test `
You can’t perform that action at this time.
0 commit comments