Create a Blog With Express, Markdown and Postgres

Express is like a dear friend who does not leave your side during happy or sad times in your life. She may not help you reach enlightenment, but she’s there and she’s super supportive. And, that’s all you need many a time. In this post we create a blog with ExpressJS and friends - oh how exciting. Our blog is going to look beautiful with - ExpressJS (of course) Ejs for templating. Has SSR built-in - for you SPA crazies Supports content authoring in markdown Here’s how it looks - ...

Shorten URL with Express and AlpineJS

In this post let us see how we can leverage the power of Express with a sprinkling of Alpine JS to create a quick URL shortener application. But, why? Express is the most popular server-side framework and my “go to” choice for creating anything really quick. Building a front-end for Express is as easy as using handlebars (or anything really) that goes in HTML served by Express. But that lacks a “nice” user experience. ...

Learn FeathersJS by Building a Simple CRM - Client App

Here we see how to build a real-world client application for your FeathersJS backend. We will use Vue + Feathers-Vuex and quickly create the frontend app. Building the Client Application Previously you saw how we could use Feathers to quickly build a backend application. The beauty of feathers is not only that it is quick to build, but it is also universal. We can use FeathersJS and Feathers-Vuex (our choice of client storage) to conjure up a client application that totally blows away our users. ...

Learn FeathersJS by Building a Simple CRM App

We have previously seen a simple todo app using FeathersJS(and NeDB). Feathers makes it really easy to develop an API or a real-time app by providing a super-powered baseline that can be extended quickly to create a useful app. However, the example provided earlier does not provide a set of features anywhere near the real-world experience. So, here we are talking about all the additional things that Feather could do - only if you let it. This is a FeatherJS + ObjectionJS + Feather-Vuex tutorial through building a totally real-world, simple CRM application called ‘FeatherLight CRM’. We name it thus since all awesome apps deserve their own name and identity. ...

Starter Template for AdonisJS

I have used AdonisJS in and out of projects in the last year. Despite it’s smaller community and not-so-regular enhancements, it remains one of my favourite NodeJS frameworks. I recommend AdonisJS for hobby and production projects in full confidence :) I typically use AdonisJS for back-end, which has me start with - adonis new awesomeness --api AdonisJS comes with a neat set of powerful features - An ORM that works quite well Authentication and security already setup Basic features to serve API without pulling a thousand wires just to get started The Case for a New Boilerplate Even with all the features baked in the default boilerplate, I tend to just copy older projects - ...

Fastode Server Framework

Fastode is an experimental boilerplate / framework based on Fastify. Why another boilerplate? Well, I just wanted to experiment with technologies to create MVP products. Although I have used NestJS, AdonisJS and friends before, those frameworks, while being great, bring their structure and overhead to any project. I wanted to check how difficult or easy it is to just start with a bunch of basic features and leave everything else to the project. ...

Unlock FeathersJS power with a todo client

Create a simple to-do client using FeathersJS. We saw a quick tutorial on creating simple FeathersJS API yesterday. Let’s unlock the full power of Feathers by using its client library and consume the API created in the earlier post! Install and initialize project We will use plain Javascript and HTML with Feathers client-side library for the purpose of this demonstration. Create HTML page Create a simple HTML page to include - a simple input box to enter new to-do an element to display to-dos fetched from server We will also include feathers from CDN. ...

Create a simple to-do API with FeathersJS

Create a simple to-do API using FeathersJS v4. FeathersJS v4 launched yesterday, and I wanted to see what changed. Of course, I wasn’t going to write a post just about v4 - I have not kept up with the Feathers ecosystem. So, let’s refresh our mind and soul by building a quick API and see how the story develops. We can start with Feathers using their CLI or with just a NPM install. We will use feathers CLI for the purpose of this post because of two reasons - ...

Use MySQL Load Files Data in AdonisJS

Use MySQL load data function to load data from files within within AdonisJS services. You can perform batch data and file operations efficiently using database utilities. The logic will likely be quicker, lighter on resources, and overall, more suited for batch jobs. Loading data from files is not as sought-after as in the good-ol’ days, but is quite common in enterprise applications. One or more of the following operations may be required to load data from files - ...

Batch Operations in AdonisJS

Use Adonis Scheduler to create batch tasks as well as schedule execution of said tasks. Adonis Scheduler improves your efficiency in writing batch jobs. I am talking about bulk operations that may or may not be suitable for your general purpose service and controllers. Although scheduler’s purpose seems to be, well, scheduling stuff we can reuse Tasks enabled by scheduler to run bulk operations. Install Scheduler First, install scheduler - yarn add adonis-scheduler Let AdonisJS know that you have added scheduler - ...