Posts

Showing posts from June, 2022

Final Work On Internship Time period (Activity Logger)

Image
               I   , the developer of the Project “Activity Logger – Web Application”, with immense pleasure and commitment would like to present the internship project assignment. The development of this project has given me wide opportunity to think, implement and interact with various aspects of management skills as well as the new emergingtechnologies.                                 Every work that one completes successfully stands on the constant encouragement, good will and support of the people around. I hereby avail this opportunity to express my gratitude to number of people who extended their valuable time, full support and cooperation in developing the project.               Industrial training is an important phase of a student li...

11. Overview of Project Deployment Using Heroku

Image
                 For the this week we will set environment variables whole project. The process core module of Node.js provides the env property which hosts all the environment variables that were set at the moment the process was started.          Then deployment of our project, Deployment like Represents the software you are deploying (such as a web application), the releases of the software deployed and the environments that they will be deployed to throughout the lifecycle.      We uploaded everything to git after completion of project. Then  finished all work of our internship project. Deploying to Production with Git Our first method is not only the most common, but also the simplest:  pushing code from a Git repository to a Heroku app . You simply add your Heroku app as a  remote  to an existing Git repository, then use git push to send your code t...

10. Debugging in Visual Studio Code

Image
             Debugging is a core feature of Visual Studio Code. In this tutorial, we will show you how to run and debug a program in VS Code. We'll take a tour of the  Run and Debug  view, explore some debugging features, and end by setting a breakpoint. The Visual Studio Code editor has built-in debugging support for the  Node.js   runtime and can debug JavaScript, TypeScript, and many other languages that are transpiled into JavaScript. Setting up a project for Node.js debugging is straightforward with VS Code providing appropriate launch configuration defaults and snippets. There are a few ways you can debug your Node.js programs in VS Code: Use  auto attach  to debug processes you run in VS Code's integrated terminal. Use the  JavaScript debug terminal , similar to using the integrated terminal. Use a  launch config  to start your program, or  attach to a process  launched outside of VS Co...

9. Activity Analysis

Image
  We create   analysis APIs like activity count weekly, activity count monthly, activity count dynamically. After activity APIs like create activity, read activity, read activity found id, update activity, delete activity.   And after creating all the APIs this week, whether those APIs work in the proper or not, We processed them and generated a all working activity’s log file.   We understand about JWT, JSON Web Token is an open standard for securely transferring data within parties using a JSON object. JWT is used for stateless authentication mechanisms for users and providers, this means maintaining session is on the client-side instead of storing sessions on the server.   And also understood that there is an error in our project or we used vs code debugger for it. And after creating all the activities and apis, we learned to set environment variables and it is necessary to guide them.         Right Now Complate Work   ...

8. PM2, the Node.js Process Manager

Image
  Uses for PM2 PM2 has a lot of uses, let’s look at a few: Restarting after crashes : PM2 allows us to keep processes running until the heat death of the universe, or a server failure, whichever happens first Monitoring and managing processes remotely : A magic-powered web portal allows you to keep an eye on remote processes and manage them It doesn’t just run Node apps : PM2 isn’t limited to just Node.js processes, that’s right, you can even use it to keep your Minecraft server online Restart-Persistance : PM2 can remember all your processes and restart them after a system restart And a whole lot more Getting started First thing we need to do is to install PM2 globally on your machine: $ npm i -g pm2 Copy Basic Commands Let’s get into the basics of how to use it. To start a process under PM2, all you have to do is run  pm2 start <app> . App being the name of the file you’re running. PM2 will output something like this: [ PM2 ] Starting C: \ Users \ moose \ app.js in ...

7. Project Formate

Image
  we created a structure of code in this project.         It is as follows: The structure of this project is divided into seven parts. ·       Controller ·       Helper ·       Logger ·       Repository ·       Src ·       Validators ·       Router and other parts.

6. How to setup a local MongoDB Connection

Image
  Installing MongoDB You need to install MongoDB on your computer before you can connect to it. You can install MongoDB by following these instructions ( Mac  and  Windows ). Once you have completed the installation process, try typing  mongo --version  into your command line. You should get a response similar to the following: mongo -- version Starting MongoDB You can start MongoDB on your computer with the  mongod  command. mongod Keep the  mongod  window running when you want to work with your local MongoDB. MongoDB stops when you close the window. Connect Activity Analysis User to MongoDB