typeorm-fixtures
:pill: Fixtures loader for typeorm ๐บ๐ฆ
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- config.yml
- bug_report.md
- custom.md
- feature_request.md
- build.yml
- FUNDING.yml
- stale.yml
- LoadCommand.ts
- IDataParser.ts
- IEntity.ts
- IFixture.ts
- IFixturesConfig.ts
- ILoader.ts
- index.ts
- IParser.ts
- IProcessor.ts
- index.ts
- JsonLoader.ts
- TsLoader.ts
- YamlLoader.ts
- EjsParser.ts
- FakerParser.ts
- index.ts
- ParameterParser.ts
- ReferenceParser.ts
- index.ts
- jFixturesSchema.ts
- fixturesIterator.ts
- index.ts
- Builder.ts
- cli-ts-node-commonjs.ts
- cli-ts-node-esm.ts
- cli.ts
- index.ts
- Loader.ts
- Parser.ts
- Resolver.ts
- Comment.ts
- Group.ts
- Post.ts
- Profile.ts
- User.ts
- Comment.yml
- Group.yml
- Post.yml
- Profile.yml
- User.yml
- UserProcessor.ts
- docker-compose-postgres.yml
- ormconfig.yml
- Listing.ts
- Post.ts
- User.ts
- Comment.txt
- Post.yml
- User.json
- User.ts
- User.json
- Connection.ts
- ListingRepository.ts
- PostRepository.ts
- UserRepository.ts
- PostProcessor.ts
- UserProcessor.ts
- EjsParser.test.ts
- FakerParser.test.ts
- ParameterParser.test.ts
- ReferenceParser.test.ts
- fixturesIterator.test.ts
- Builder.test.ts
- Loader.test.ts
- Parser.test.ts
- Resolver.test.ts
- mocha.opts
- .commitlintrc.yml
- .czrc
- .editorconfig
- .eslintrc.js
- .gitignore
- .lintstagedrc.js
- .npmignore
- .npmrc
- .nvmrc
- .nycrc
- .prettierignore
- .prettierrc.js
- _config.yml
- CHANGELOG.md
- LICENSE
- package.json
- README.md
- tsconfig.json
- yarn.lock
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/RobinCK/typeorm-fixtures
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd typeorm-fixtures
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Node.js
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
npm install typeorm-fixtures-cli --save-dev
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
yarn add typeorm-fixtures-cli --dev
์ด ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ๊ทธ๋๋ก ์ ๋ ฅํด ์คํํ์ธ์.
npm install
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
npm run build
๋ฐฐํฌ์ฉ์ผ๋ก ์ฝ๋๋ฅผ ์ต์ ํํด์ ๋น๋ ํ์ผ์ ์์ฑํฉ๋๋ค.
npm install ts-node --save-dev
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
