All Posts

Config SSH and User in a DigitalOcean Droplet

Posted on November 11, 2020

Setup SSH and User in Server Create ssh in the local machine It will generate an .pub(public) and a private key files Create an ubuntu user Give super user access to the user Change it to the new user…

Read full post

PSQL commands that every developer should know!

Posted on October 01, 2020

In this tutorial, we will be listing out some basic psql commands that will help to query data from PostgreSWL database server. 1. Connecting to PostgerSQL database The following command is used to…

Read full post

React Hooks useContext() example

Posted on May 04, 2020

In this tutorial we will be setting up a basic react application with two pages sharing a common context. 1. Setup A Basic React Project we will be creating a basic react app bootstraped with create…

Read full post

Add OpenSSL to Express App

Posted on May 03, 2020

Steps to generate a self-signed certificate using OpenSSL and integrate to your existing Express.js app 1. Generate Key & Certificate Your system might already have openssl installed. If not, just…

Read full post

Deploy Node.js App To Digital Ocean

Posted on May 02, 2020

Node.js Deployment Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt 1. Sign up for Digital Ocean If you use the referal link below, you get…

Read full post

Hex Color to rgba

Posted on January 21, 2020

Hex to RGBA color in JS Let's create a function in JS to convert the Hex Color Code to RGBA with Opacity. HexToRgba.js

Read full post

Hello World!

Posted on December 31, 2019

4nnt4 created Syntax.Rocks as a place where developers could collaborate with one another to horn their skills in their domain. From basics of coding with different languages to deep concepts in…

Read full post

Markdown Guide

Posted on December 31, 2019

What is Markdown ? Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the…

Read full post