Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nestjsplus/massive-cats
Sample App for @nestjsplus/massive
https://github.com/nestjsplus/massive-cats
Last synced: about 2 months ago
JSON representation
Sample App for @nestjsplus/massive
- Host: GitHub
- URL: https://github.com/nestjsplus/massive-cats
- Owner: nestjsplus
- License: mit
- Created: 2019-09-05T23:12:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:38:28.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T18:24:59.561Z (almost 2 years ago)
- Language: TypeScript
- Size: 610 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Sample App for @nestjsplus/massive
### What?
This is a standalone sample app showing how to use the [@nestjsplus/massive](https://github.com/nestjsplus/massive) package for integrating [MassiveJS](http://massivejs.org) with [Nest](https://nestjs.com).
You can clone and install it, and examine the source code to learn how to use the package.
The `src/app.controller.ts` file and `src/app.service.ts` files also demonstrate how to take advantage of some of Massive's nifty PostgreSQL integration capabilities.
### Installation
> git clone https://github.com/nestjsplus/massive-cats
Creates a folder called `massive-cats`
> cd massive-cats
#### Supply credentials
This example assumes you have a PostgreSQL installation available. You'll need to add the PostgreSQL database credentials.
The example uses [NestJS Configuration Manager](https://github.com/nestjsplus/config) to supply environment variables to the app. It's set up to expect a `development.env` file in a folder called `config` at the root level (a sibling to `src`). (You can change any of these settings, or use more features of *NestJS Configuration Manager* by reading the docs, or hard code your credentials, or use another config manager, etc.).
The `development.env` file should look like this:
```
host=
port=
database=
user=
password=
```#### Install dependencies and run
> npm install
> npm run start:dev
See [the docs](https://github.com/nestjsplus/massive) for more.
### Change Log
See [Changelog](CHANGELOG.md) for more information.
### Contributing
Contributions welcome! See [Contributing](CONTRIBUTING.md).
### Author
**John Biundo (Y Prospect on [Discord](https://discord.gg/G7Qnnhy))**
### License
Licensed under the MIT License - see the [LICENSE](LICENSE) file for details.