My Blog Posts

Make sapper run listen to different port

I comeup with one issue today. I wanted to run 2 sapper aplication simultaniously in same erver. When I tried the both sapper applications are trying to listen to same port 3000.

To make sapper listen to another port rather than PORT 3000 you need to pass additional parameter along with npm run start command.

Posted on : 7/5/2020, 11:13:09 AM Read More

Setup FREE ssl using cerbot in ubuntu server and Nginx

Today, I experienced an issue on my SSL cert of one of my domain. Finally I decided to use open SSL for my domain. To setup that I had to install "Cerbot" in my ubuntu. I hope you aleady installed Nginx in your machine.

Step 1 -- Installing Certbot

sudo apt install certbot python3-certbot-nginx

Posted on : 7/2/2020, 10:39:58 AM Read More

Diffrence between npm, yarn and npx

As I am new to javascript, day by day I am coming across loads of new questions and I wanted to make sure, nothing should block my progress in JS learning. Here is what I understood.

NPM and Yarn are both package managers. Package Managers is essentially a way to automate the process of installing, upgrading, configuring or removing software.

Posted on : 7/1/2020, 11:39:50 AM Read More

Create google sitemap in your sapper/svelte project

I have finished almost with my personal blog site http://roopz.club today. My last step is to create on sitemap file in website.

According to google, sitemap files can be in TXT format too. For more details visit the google site.

Posted on : 7/1/2020, 11:36:12 AM Read More

Build sapper project and run as daemon PM2

Deploying your sapper project

Once you pulled your sapper project to production server. Do the following steps

npm install
npm run export

Posted on : 7/1/2020, 11:12:42 AM Read More

Remove trailing slash in url (Apache)

In my site, it was redirecting urls with a trailing slash (/)

domain.com/file.html -> domain.com/file.html/

I have added following code to remove trailing slash .htaccess

Posted on : 7/1/2020, 11:07:41 AM Read More

Deploy your sapper project nginx environment

I started playing with sapper a few weeks backs. I started with my blog roopz.club. When I deplyed my project, I came across many URL issues, as I am using nginx as webserver.

By spending some time on sapper export, I have got how to make it work. I have followed the followng steps.

Posted on : 7/1/2020, 11:05:13 AM Read More

Power shell a quick introduction

I got an opportunity to check poweshell concepts today, related to a project of integrating ITglue APIs and Powershell commands. I was 100% new to powershell and was not sure about what this term means actually.

Posted on : 7/1/2020, 10:47:02 AM Read More

Adonis Nginx Proxy Setup in Ubuntu

This recipe shares the minimally required steps to serve AdonisJs app using nginx proxy.

First step

Before getting started, make sure you can run your application on the defined port. Also, it is recommended to make use of a process manager like pm2 to start your Node.js server.

pm2 start server.js

Posted on : 7/1/2020, 10:18:39 AM Read More

Setting up adonis server for deployment

As I am new to javascript, day by day I am coming across loads of new questions and I wanted to make sure, nothing should block my progress in JS learning. Here is what I understood.

NPM and Yarn are both package managers. Package Managers is essentially a way to automate the process of installing, upgrading, configuring or removing software.

Posted on : 7/1/2020, 10:11:09 AM Read More

Using markdown editor (Marked) in svelte components

Today, I changed my thought on manging APIs in my personal blog. I have got a chance to look into strapi. Strapi is really awesome and it made all my cms/api stuff made simple. Now I use strapi as CMS api and forend sapper.

Posted on : 7/1/2020, 6:52:53 AM Read More

  • Roopz © 2020