Posts

Showing posts with the label Production Server

How To Create S3 Bucket In AWS And Connect With Node JS

Image
a AWS S3 Bucket - Education Funda Create Policy Add ARN Create User as Allow and Create Role ? Add s3-user-policy as permission Now go into user and create access and secret key

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...

Deploy NodeJS Project in Ubuntu Server

Image
Let's See The Standard Way To Deploy NodeJS  Project with Nginx  Firstly I assume you already connected to your Ubuntu server. Now first command which you need to run is ~ sudo apt-get update (This command will update all default packages of ubuntu server with latest versions) Now let's install Nginx server ~ sudo apt install nginx Now you have to install Node JS and NPM (Please read this article for it) Now you can check with ~ nginx -v ~ node -v ~ npm -v  NodeJS - Education Funda In each above commands version should be written if not it means it not installed properly in your server. now go to cd /var/www directory -> From here create directory sudo mkdir domain.xyz . -> cd domain.xyz . From here take clone from your GIT branch ( Reference Link ) Now go to ~ cd yourCloneDirectory . -> From this directory just run your project ~  node app.js/server.js (your root file of node js project) Now just call your IP or Domain in your browser your project should...