A stack is an abstract data type that follows FILO (First-In-Last-Out) principle while inserting and deleting elements. Which means the element which is inserted first will be deleted last and the element inserted last will be deleted first. Stack can be implemented using arrays or linked list. Here we are creating stack using arrays in golang. Knowledge of golang slices will be an added advantage.
These are the operations we are going to implement
Push: Adds element to the top of the stack and return “Stack Overflow” if the stack is full.
Pop: Removes the top most element from the…
File uploading is an important part of the majority of websites, and since GraphQL is getting more and more traction, GraphQL community began asking how can we upload files using GraphQL.
Then Jayden Seric had created a specification for GraphQL multipart request and created an upload package for GraphQL to support multipart request. After that Apollo had added this feature into Apollo Server 2.0. So now we can easily upload a file using GraphQL.
We are using the apollo-server for creating the GraphQL server. Apollo-Server has a great documentation to get started. So let's create the root directory and install…
Most of the application built requires some sort of searching functionality. In most cases, searching is implemented using third-party applications like elasticsearch and solr. And the problem with these is you need to store data in multiple places, keep them synced. MongoDB’s Full-text search has provided a way to implement search to your application without the use of third-party applications. So if you only require full-text search then MongoDB’s full-text search will help you. There is no explicit support for partial or fuzzy matches, but stemming and stop words are supported. …
Hey guys, Do you want to know how to send an SMS to a phone number.
nowadays many of the websites and apps use text messaging service for important notifications and promotions. In this medium tutorial, I will be showing you how to use Amazon SNS to send text messages to a specific phone number.
Amazon Simple Notification Service(Amazon SNS) is a web service provided by AWS for sending messages to subscribers or endpoints. Amazon SNS has two parts -publishers and subscribers. Publishers send messages to a topic and subscribers who are subscribed to that topic will receive those messages.
This tutorial will guide you through the steps of creating a simple CRUD app using MEVN stack (MongoDB, Express.js, Vue.js and Node.js). Axios is used for making HTTP requests.
Express.js is a web application framework for Node.js.
Axios is a promise…