Skip to main content

Posts

Showing posts with the label JS

Fullstack User CRUD

Build a Basic CRUD App with PostgreSQL, Express and React In this beginner project, we will create a simple users application using PostgreSQL, Express.js, Node.js and React.js. We will divide the application into small steps so that the complete flow is easy to understand. Action Method API Show users GET /api/users Add user POST /api/users Edit user PUT /api/users/:id Delete user DELETE /api/users/:id Step 1: Create the Database Open pgAdmin. Right-click Databases , select Create → Database , enter users_crud_db , and save it. Step 2: Open the Query Tool Select users_crud_db and open Tools → Query Tool . Step 3: Create the Users Table Run the following SQL query: users.sql SQL CREATE TABLE users ( id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(150) NOT NUL...

JS: Cheatsheet

   Datatypes Difference Between Var, Let and Const Functions and its types Asynchronous operations in JS

JS: Change Node version on windows

  You may need to change your current node version to some old or new version for the compatibility of a project someday, So here is a guide to do so on windows PC, let's just check it out.  Step 1: Visit this link  https://github.com/coreybutler/nvm-windows Step2: Just click on  latest installer link in the bottom Step3: Download the  nvm-setup.zip from here and install the setup. Step4: After the installation open cmd with administrative mode . Step5: Execute the command nvm install the_version_you_want Step6: Now nvm use  the_version_you_want Step6: Hurray the version is changed you can check by this command nvm list Now Cheers !😊

JS: Integrate WhatsApp Chat on your website

Want to know how can you easily integrate WhatsApp chat on your website just follow the steps below and I am sure you will find this pretty easy. There is no rocket science to crack it you just need basic code knowledge only.  Step 1: Just paste the following code before body tag on your website and replace the dummy number with your actual number and place any whatsapp icon <a href =" https://wa.me/yourmobilenu?text=Hey%21%20%20 " class =" whatsapp-chat " target =" _blank "> <img src =" img/whatsapp.png "> </a> Step2: Paste the following code in your style CSS .whatsapp-chat { position: fixed; left: 25px; bottom: 24px; z-index:9; } Now Cheers !😊

JS: Fetch the dynamic instagram posts on your static website

Got Stuck, Want to fetch the Instagram Posts on your static website and have no clue how to do that, No worries you are at the right place just follow the steps, and you are done, enjoy the hassle-free automated posts from your Instagram account to your up and running website. No more embedded iframe manual Instagram posts.  Step 1: Include the following script after the jquery library <script type="text/javascript"  src="https://www.jqueryscript.net/demo/Instagram-Photos-Without-API-instagramFeed/jquery.instagramFeed.js?v8"></script> Step2: Add the following code in footer and place your Instagram username in place of following bold marked text $(window).on('load', function(){     $.instagramFeed({         'username': ' Your Instagram Username ',         'container': "#instagram-feed1",         'display_profile': false,         'display_biography': false,      ...