We needed to write some tests for our node application. We had an idea of writing tests with the help of Mocha and Chai, but we hadn’t been able to use them, until just recently. After going through their documentation, we came across a lot of problems, and hence decided to write an article describing our problems and how we tackled them.

Problem faced while writing tests using Mocha

  • The tests command has to be executed right after the server is run.
  • To programmatically write a script to execute the Mocha commands is tricky as the app instance needs to be run first and only after that…

Introduction

If you have read some of our previous articles, you might have noticed that we mostly use NodeJS and Express for our backend developments.

Born in approximately 41 BBY, during the era of the Galactic Republic, this is a work in progress lightweight express framework. A youngling framework.

You can find the Grogu.js repo here.

Importance of structuring your code

Code management is very important, whether you are employing someone to write code for you or you write it yourself. …


Database backups are essential for protection against data loss that can completely disrupt business operations. Regular backups are crucial when you have transactional or very dynamic data in your database. Unlike SQL, MongoDB does not come with shadow paging, unless you are ready to work with replica sets (To deploy mongo in replica sets, click here).

TLDR; The docker image, developed by our CTO and Co-Founder Rohan Dhamapurkar, can be found here.

How to use the container:

Highlights:

  • The package will take a full database instance backup locally as well as on the server.
  • You can change the number of days the local backup stays.


Have you ever come across situations in your code where you thought that if this function returned a promise, things could’ve been so much easier?

Well, we came across such issues while we were using AWS S3 storage and we thought of making our lives simpler by making an npm package!

Our CTO and Co-Founder, Rohan Dhamapurkar, got thinking and made s3Helper, an npm package which promisifies all the callbacks from AWS S3.

You can find the s3helper package here.

How to use s3Helper:

You need to first install the s3Helper package by typing the following command in the CLI:

npm i @orderstack/s3helper

After…


Gone are the days to wait in lines to get order orders placed in the restaurants. KFC has a food ordering chatbot that has been out there for a while. All the hype about it made us try it. The concept was beautifully placed in people’s minds with amazing videos and attractive catchphrases. I like how quick the bot is to respond and the language also seems to be friendly for the user.


In one of our first projects as OrderStack, we had to make a data warehouse and analytical platform. The challenge here was integrating it with their existing systems and complementing them by providing a robust way to process incoming data client wise.

Overview

Data processing engine
Insightful and flexible reports
Readily available Integrations
Avoid repetitive tasks and reduces errors
Enterprising and visually appealing reports

Project Lifecycle:

Requirement Gathering

We discussed with the client how the integration with the existing systems will be. Also, we understood all the functionality that the client needed while data processing and also the input data formats and sources.
We outlined a…


In 2017 we here at OrderStack had conceptualized an idea for food ordering chatbots for restaurants. Helping restaurants by providing them a virtual host and creating an online presence.

Overview

A Facebook Messenger Chatbot.
Natural Language Processing.
Small Talk Enabled.
User Context Management.
Reduce User Ordering Time.

Project Lifecycle:

Requirement Gathering

We got into inter-team brainstorming sessions on how the flow of the bot should be and the features that it will have apart from the food ordering flow. We also researched the Facebook Graph API to handle the messages and also to figure out the challenges on the Messenger UI while giving in responses…


This article heavily depends on our previous article so we sincerely recommend to go through the previous article on how to Deploy a Single Organization blockchain network using Hyperledger Fabric 2.0 with NodeJS.

In the previous article on how to Deploy a Single Organization blockchain network using Hyperledger Fabric 2.0 with NodeJS, we used Hyperledger Fabric to create a network with one organization and created a channel comprising of that peer. This network is called the base network.

The base network comprises of orderer and peer nodes. In the single deployment article, we have created only a single organization. In…


Deploy a Single Organization Blockchain Network Using Hyperledger Fabric 2.0 and NodeJs
Deploy a Single Organization Blockchain Network Using Hyperledger Fabric 2.0 and NodeJs

Whenever you read something about “blockchain” the first thing that comes to your mind is Bitcoin. But blockchain provides so much more than that. Simply put, blockchain technology allows a series of interconnected computers to reach an agreement on shared data. This technology is helpful in a lot of fields that aren’t cryptocurrencies; like supply chain management, digital identity, voting, healthcare, IoT, etc.

In this article, we will talk about how you can use the Hyperledger Fabric blockchain framework to deploy your own blockchain network! The Hyperledger Fabric framework is used widely in several industry use cases such as education…


AWS Lambda is a convenient way to run and deploy simple functions (FaaS) which scale gracefully under load. However, for Python, importing external packages and dependencies can be a pain given the restricted environment that AWS Lambda provides.

OrderStack

We are a technology solutions startup. We started right out of college as a Chatbot service provider and later branched into bespoke software solutions.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store