Skip to content

andrew-itscript/massive-cats

 
 

Repository files navigation

Sample App for @nestjsplus/massive

What?

This is a standalone sample app showing how to use the @nestjsplus/massive package for integrating MassiveJS with Nest.

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 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=<localhost, or IP address of your PostgreSQL server>
port=<port PostgreSQL listens on>
database=<database name>
user=<database user>
password=<database password>

Install dependencies and run

npm install

npm run start:dev

See the docs for more.

Change Log

See Changelog for more information.

Contributing

Contributions welcome! See Contributing.

Author

John Biundo (Y Prospect on Discord)

License

Licensed under the MIT License - see the LICENSE file for details.

About

Sample App for @nestjsplus/massive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.3%
  • PLpgSQL 7.7%