/demo-nodejs-mongodb-rest

NodeJS and mongodb example application

Primary LanguageJavaScript

NodeJS-MongoDB-Demo

This is an example NodeJS application that works with MongoDB on Clever Cloud.

The application is a very simple list where you can add or delete values.

To install it, simply fork this repository and create an application from your GitHub repo. Then create a MongoDB add-on and link it to your application.

That's it, the application will use the environnement variables to connect to MongoDB.

NOTED:

This repositoty I already created the Dockerfile. you can follow the dockerfile. if you want try that

How to use the build the images

docker built -t name:tag .

docker push to hub.docker

I already had the docker repositoty also. if you want to try

https://cloud.docker.com/repository/docker/atisak/demo-nodejs