Posts

Showing posts from April, 2023

Deploy Angular Build With Express JS Project

Image
Deploy Angular Build in Node JS (Express JS) Server Mean Stack - Education Funda Firstly Create Angular Production Ready Build: ~ ng build (run in command line when directory is projectFolder). ~ Compress using Brotli compression the resources using the following command for i in dist/*/*; do brotli $i; done Deployment Check Angular Build: You can get a preview of your application using the ng serve --prod command that starts a local HTTP server such that the application with production files is accessible using http://localhost:4200. This is not safe to use for production usage. For a production usage, you have to deploy all the files from the dist folder in the HTTP server of your choice. Node JS/Express JS Server File Changes: //enabling CORS app . use ( cors ()); app . use ( express . static ( path . resolve ( './public' ))); //api v1 base route set app . use ( '/api/v1' , router ); //angular front site app . use ( express . static ( path . resolve ( './public/a...

Install Free SSL For Nginx Server with Ubuntu 20.X

Image
If you want to install free SSL for your domain then you are on right blog. In this blog I will explain you how you can configure free SSL certificate with Ubuntu Server. By Education Funda Step 1: Go and connect to your server with ROOT user either with SSH or Putty. Step 2: Now enter this command $ sudo apt-get update Step 3: Now enter this command $  sudo snap install core; sudo snap refresh core Step 4: Now enter this command $  sudo apt-get remove certbot Step 5: Now enter this command $  sudo snap install --classic certbot Step 6: Now enter this command $  sudo ln -s /snap/bin/certbot /usr/bin/certbot Step 7: Now enter this command $  sudo certbot --nginx Now in Step 7 after enter it will ask your domain name and email address please enter details carefully here then That's it, You have done it, Yeah 💪 It will be valid up-to 3 months. For any question or feedback please write into comments section, I hope this blog will be helpful for you if Yes t...