Profile Image Upload Functionality Using Angular and Node

In a recent project, I was working on a user profile component that can be used by the user to edit their profile information. A part of that component was a profile image section which lets the user change their profile picture. The profile picture is sent to the Node API via HTTP Post request, stored in a folder and then name/URL of the image is stored in the database. In this post, I will share the code on how to implement this functionality.

forward

JavaScript Build Setup For Development of WordPress Blocks – NodeJS

JavaScript build setup helps to speed-up the development of WordPress blocks and creates the two main files i.e. build/index.js and build/index.asset.php which are used while developing the actual WordPress block inside plugin or functions.php of WordPress installation. The index.js file contain the compiled code (from ESNext and JSX syntaxt to plain JavaScript) for the actual WordPress block and index.asset.php file contains the dependencies and version information (generated from the used packages) to be injected while registering the WordPress block.

forward

API Development Using NodeJS, ExpressJS and MySQL

In this tutorial guide, we will build a simple NodeJS API using ExpressJS and MySQL with basic CRUD (create, read, update, delete) operations. NodeJS is a JavaScript run-time environment used to execute JavaScript code outside browsers i.e on the servers. Visit our other blog post, to learn more about what is NodeJS? NodeJS along with ExpressJS (web framework for NodeJS) is a widely used combination to build RESTful API’s with a database query language like MySQL or MongoDB.

forward

What is NodeJS

This short guide describes briefly what is NodeJS. Following are some of the references to the definition and explanation of the question What is NodeJS. Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. https://nodejs.org/en/ Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser. https://en.wikipedia.org/wiki/Node.js Node.js is an open source server environment which runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) https://www.w3schools.com/nodejs/nodejs_intro.asp NodeJS is not programming language or frameworkNodeJS is a run-time environment to execute JavaScript codeNodeJS is asynchronous which means that it can handle multiple requests at the...
forward

Host Angular App and NodeJS App on Same Domain

In this tutorial, we will discuss the steps to host angular app (front-end) and NodeJS App (back-end API) on same domain. The idea is that we will have a folder named as ‘public’ in the root folder of the app which will have all files associated to the angular app.

forward

7 Steps To Create Hello World App in NodeJS using ExpressJS Framework

Download and install node.jsCreate a folder and CD into that folder using using node.js command promptrun the command npm initTo install and use expressjs ( Fast, unopinionated, minimalist web framework for Node.js ), run the command npm install express --saveCreate a new file and name it server.js (code is attached at the end of this post). Add the code (Server.JS File Code), in this file.To run the node.js app, run the command node server.jsVisit http://localhost:3000/ to see the results Extra Packages: To automatically restart the server, install supervisor package (nodemon can also be used) by running the command npm install npm...
forward

How to Deploy NodeJS App in GoDaddy Shared Hosting

This post describes the exact steps to deploy a NodeJS app on GoDaddy shared hosting. Log in to GoDaddy account and click Manage HostingIn settings, click server and make sure SSH access is onClick manage against SSH access and note down the credentialsInstall a tool (Putty, MobaXTerm, etc.) to connect to the server using SSHOnce connected cd into the directory where you want to deploy a NodeJS app. It will be public_html for main domain or public_html/ in case of subdomainrun the command: wget https://nodejs.org/dist/v6.9.2/node-v6.9.2-linux-x64.tar.xzAbove command will install the node in your directoryUpload your app in zip format and extract...
forward