Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomoat/nestjs-multiple-db
https://github.com/tomoat/nestjs-multiple-db
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomoat/nestjs-multiple-db
- Owner: tomoat
- Created: 2021-12-13T08:39:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-11T17:55:21.000Z (over 2 years ago)
- Last Synced: 2024-10-17T12:39:56.037Z (about 1 month ago)
- Language: TypeScript
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
[travis-url]: https://travis-ci.org/nestjs/nest
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
[linux-url]: https://travis-ci.org/nestjs/nest
A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Installation
```bash
$ npm install
```## Start mysql using docker
```bash
docker-compose up
```
### Some important docker commands
```bash
docker-compose down # Removes the container
docker-compose down -v # Remove the created volumes as well
docker-compose up -d # -d will run the compose file in background
docker-compose build # This will just build an image
docker volume rm VOLUME_NAME # Reinitializing the Docker container requires deleting the volume
docker volume ls # list all volume
```
### Some important mysql commands
```bash
mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
```## 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
```## 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).