Sample Nodejs Project Run in Vs Code

  1. Go to the NodeJS website and download NodeJS
  2. Make sure Node and NPM are installed and their PATHs defined
  3. Assuming I have node and npm properly installed on the machine, I would
  4. Sample Nodejs Proejct DownloadDownload
  5. Extract the folder.
  6. Folder open in Vs code
  7. Open Terminal ( ctrl+shift+backtick)
  8. After that, run the application by entering the below command
  9. npm install
  10. npm start
  11. Run your server
  12. Now, launch your browser and visit http://localhost:7500/

How to Deploy an App to Render from a GitHub Repository

  1. Create a free account on render
  2. After completing all processes now login to your account.
  3. Click on the “Create new app”.
  4. Select GitHub as a method. It will show a “Connect to GitHub” option where we add provide our GitHub repository.
  5. render-image
  6. Once signed up and logged in to your account, you will see a dashboard like this:
  7. render-image
  8. To deploy a Node.js application, click on the New Web Service button under the Web Services option.
  9. You can also click on the New + button displayed in the header just before your profile picture and select Web Service option.
  10. Once clicked, you will see the following screen:
  11. Next, click on the Select repositories button displayed below the option and select the GitHub repository which you want to deploy.
  12. Once selected, you will see the following screen displaying the selected repository.
  13. Click on the green Install button to give access to the selected repository to the Render website.
  14. Once clicked, you will be redirected to your dashboard where you will see your selected repository as shown below:
  15. Now, click on the Connect button and you will see the following screen:
  16. Add Environment Variable
  17. Now, you can click on the the Create Web Service button to start the deployment process.

Thanks for reading!🙂🙂