https://github.com/webmasterdevlin/heroes-nestjs-mongdb
Tour of Heroes web sevice built using Nestjs and MongoDb
https://github.com/webmasterdevlin/heroes-nestjs-mongdb
Last synced: 3 months ago
JSON representation
Tour of Heroes web sevice built using Nestjs and MongoDb
- Host: GitHub
- URL: https://github.com/webmasterdevlin/heroes-nestjs-mongdb
- Owner: webmasterdevlin
- License: mit
- Created: 2019-09-08T09:02:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:43:05.000Z (over 2 years ago)
- Last Synced: 2025-03-01T16:47:29.280Z (4 months ago)
- Language: TypeScript
- Homepage: https://nestjs-mongdb.webmasterdevlin.now.sh
- Size: 1.13 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nest node framework and MongoDB: Backend service for my Tour of Heroes web and mobile apps.
## How to run
create a database in [Mlab](https://mlab.com/). Make sure to create a user that has a read and write role.
```sh
$ git clone https://github.com/webmasterdevlin/nestjs-mongodb.git
$ cd nestjs-mongodb
$ npm run start:dev
```## SwaggerUI
Url of api docs [http://localhost:5000/docs/](http://localhost:5000/docs/)Url of Nestjs in production. [https://nestjs-mongodb-g2nm85c59.now.sh](https://nestjs-mongodb-g2nm85c59.now.sh)
How to deploy to Netlify? [here](https://trilon.io/blog/deploying-nestjs-to-zeit-now)
How to include environment variables? [here](https://zeit.co/docs/v2/build-step#using-environment-variables-and-secrets)
Note: Hiding secret keys in your environment variables is a best practice. However, I'm not worried not setting it up here because the mongo server that I'm using is free.