JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tags: 'MongoDB', 'testing'. Clear
Scoop.it!

Unit Testing in Sails.js with Mockgoose, Mocha and Chai

Unit Testing in Sails.js with Mockgoose, Mocha and Chai | JavaScript for Line of Business Applications | Scoop.it

I obviously chose Sails.js, I decided to use Angular because I wanted to learn it, and I used Mongo because I wanted to work with a NoSQL db (for no other reason than to learn it). This kept my stack completely Javascript, and really fun to learn. When it came time to write my models I decided to use Mongoose instead of Waterline, which involved some fun little hacks here and there to get it wired up inside of Sails. However, the real challenge came when I decided to start doing Unit Testing and TDD, and that's what I'll go in to (finally, right?). For the sake of clarity I'm going to focus on how I got Mockgoose to work with my tests 

No comment yet.
Scoop.it!

An Introduction To Full-Stack JavaScript

An Introduction To Full-Stack JavaScript | JavaScript for Line of Business Applications | Scoop.it

Nowadays, with any Web app you build, you have dozens of architectural decisions to make. And you want to make the right ones: You want to use technologies that allow for rapid development, constant iteration, maximal efficiency, speed, robustness and more. You want to be lean and you want to be agile. You want to use technologies that will help you succeed in the short and long term. And those technologies are not always easy to pick out.

In my experience, full-stack JavaScript hits all the marks. You’ve probably seen it around; perhaps you’ve considered its usefulness and even debated it with friends. But have you tried it yourself? In this post, I’ll give you an overview of why full-stack JavaScript might be right for you and how it works its magic.

No comment yet.
Scoop.it!

Express.js 4, Node.js and MongoDB REST API Tutorial

Express.js 4, Node.js and MongoDB REST API Tutorial | JavaScript for Line of Business Applications | Scoop.it

ere’s a brand new, revisited tutorial for Express.js 4, Node.js and MongoDB (Mongoskin) free-JSON RESTful API server.

Contents:

  • Node.js and MongoDB REST API Overview
  • REST API Tests with Mocha and Superagent
  • NPM-ing Node.js Server Dependencies
  • Express.js 4.x Middleware Caveat
  • Express.js and MongoDB (Mongoskin) Implementation
  • Running The Express.js 4 App and Testing MongoDB Data with Mocha
  • Conclusion and Further Express.js and Node.js Reading

This Node.js, Express.js and MongoDB (Mongoskin) tutorial will walk you through writing the test using the Mocha and Super Agent libraries. This is needed for a test-driven development building of a Node.js free JSON REST API server.

The server application itself will utilize Express.js 4.x framework and Mongoskin library for MongoDB. In this REST API server, we’ll perform create, read, update and delete (CRUD) operations and harness Express.js middleware concept with app.param() and app.use() methods.

No comment yet.