Fetch WordPress Blog Posts – Next.js (Server Side Props)

Blog
import React from “react”; export async function getServerSideProps() {   const res = await fetch(“https://wpsite.com/wp-json/wp/v2/posts”);   const data = await res.json();   return {     props: {       blogs: data,     },   }; } const Blog = ({ blogs }) => {   return (     <div>    …
Read More

React Native Installation using expo [Ubuntu 20.04 LTS]

Blog
Open Terminal [Ctrl+Alt+T] Node & Npm Installation Node Version Check: node -v NPM Version: npm -v If Node & Npm not installed can run this curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - I’m using Yarn, To Install: npm install --global yarn To Check: yarn --version Install Git apt-get install git To check: git --version…
Read More

Make Entire Laravel Site Password Protected [Works 8.x version]

Blog
I have used the following repository https://github.com/elic-dev/laravel-site-protection To install: composer require elic-dev/laravel-site-protection Open [app/Http/Kernel.php] Add this variable in Middleware array (protected $middleware = [];) \ElicDev\SiteProtection\Http\Middleware\SiteProtection::class, Add passwords on .env file SITE_PROTECTION_PASSWORDS=password1,password2 That’s it!
Read More

Publish Laravel Site from Github

Blog
Make sure you meet all server requirements before continue https://laravel.com/docs/7.x/installation#server-requirements Laravel 8 requires PHP 7.3+. Composer must have to be installed. First Open your GitHub repository on your web browser and copy your git URL eg: https://github.com/USERNAME/YOUR_REPOSITORY_NAME.git (this is the GIT URL) Open your server SSH – Can use putty or some hosting have there…
Read More

How to Setup Shopify CLI on windows 10

Blog
If you are having stack trace or SHOPIFY_CLI_STACKTRACE=1 kind of errors then this might fix your issue. Install the following or make sure all are installed Node & NPM https://nodejs.org/en/download/ To check on cmd: node -v, npm -v Install Ruby and Rubygems https://www.ruby-lang.org/en/downloads/ https://rubygems.org/ To check: ruby -v, gem -v Install Git SCM version https://git-scm.com/downloads Command: git –version…
Read More
Menu