Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabogit/nestjs-typeorm
db config & migrations
https://github.com/fabogit/nestjs-typeorm
nestjs typeorm typeorm-migration
Last synced: 8 days ago
JSON representation
db config & migrations
- Host: GitHub
- URL: https://github.com/fabogit/nestjs-typeorm
- Owner: fabogit
- Created: 2023-11-28T16:05:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-08T17:02:45.000Z (about 1 year ago)
- Last Synced: 2024-11-06T20:37:49.565Z (about 2 months ago)
- Topics: nestjs, typeorm, typeorm-migration
- Language: TypeScript
- Homepage:
- Size: 313 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
A progressive Node.js framework for building efficient and scalable server-side applications.
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Installation
Set node version (from .nvmrc) and install packages
```bash
$ nvm use && npm i
```Start database container
```bash
$ docker-compose up
```set up mysql to have a database named as the env variable `MYSQL_DATABASE`
Stop docker container
```bash
$ docker-compose down
```## Running the app
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Test
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov# test item service
$ npm test items.service
```## Migrations
```bash
# create an INIT migration
$ npm run typeorm:create-migration --name=INIT# run up migrations
$ npm run typeorm:run-migrations# run down migrations
$ npm run typeorm:revert-migrations
```## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
## Stay in touch
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)## License
Nest is [MIT licensed](LICENSE).