Skip to content

An example implementation of a very lightweight tech stack featuring AngularJS, Restangular, RESTHeart and MongoDB for direct access from the UI layer to the backend, without a middle tier.

License

Notifications You must be signed in to change notification settings

codebulb/restangularOnMongoDb

Repository files navigation

restangularOnMongoDb

An example implementation of a very lightweight tech stack featuring AngularJS, Restangular, RESTHeart and MongoDB for direct access from the UI layer to the backend, without a middle tier.

This is the sample application of this blog post: AngularJS + MongoDB: Goodbye middle tier?

Usage instructions

Install locally

  • Clone repository to your local computer
  • Install MongoDB 3.1.3 (more recent versions may work as well, but are not tested)
  • Install RESTHeart 0.10.2 (more recent versions may work as well, but are not tested)
  • npm install in the project's main folder to download / install all NPM dependencies
  • bower install in the project's main folder to download / install all bower dependencies
  • Create database / collection: in mongo (start mongod first):
    • use restangularOnMongoDb
    • db.createCollection("customers")

Run locally

  • mongod to start the MongoDB service on default port 27017
  • Start RESTHeart server on default port 8080
  • grunt serve to run the web application on the static Grunt server
  • Open the web application in your browser on URL http://localhost:9000

About

An example implementation of a very lightweight tech stack featuring AngularJS, Restangular, RESTHeart and MongoDB for direct access from the UI layer to the backend, without a middle tier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published