Skip to content

Brijesh1005/soi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up

Get code and install dependencies
git clone <<url>>
npm install
Get all server side stuffs

Mongoose, mongoDB, express and node js

Running the app
  1. Server
    1. Start mongo server: mongod <path to db>
    2. To make our node server continuously running we used Forever. There are couple of other process managers for express app.
    3. Start node server: npm run start:dev
Command Description
npm run server Starts the node server, but any change in server files needs restart of node server.
npm run start:dev Starts the node server and forget about it. Forever will do restarting job for you. This command runs forever continuously in terminal and logs output in terminal.
npm run forever:startdev Starts the node server and forget about it. Forever will do restarting job for you. This command spuns up a daemon process and logs the output at ~/.forever/
npm run forever:stopAll Stops all forever daemons and long running terminal processes
npm run forever:restartAll Restart all forever daemons and long running terminal processes
npm run forever:list List out details of all forever daemons and long running terminal processes

Data archiving and purging

Purge Process

Data purging is the process of freeing up space in the database or of deleting obsolete data that is not required by the system. The purge process can be based on the age of the data or the type of data.

Archive Process

Data archiving is the process of backing up the obsolete data that will be deleted during the purge process. During the archive process, data will be moved from the main transactional tables to the backup tables.

Know the deference between Purge and delete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published