Simple-nodejs-app is a simple web application created using Node.js. It uses MediaWiki - Wikipedia's Search API to search for anything entered by the user and parses the result in a JSON format.
- yum install nodejs14
- npm install
- npm start
- After installation, run
npm installto download and install all the required dependencies. - Run
npm startto run the web application.
-
sudo apt install nodejs
-
sudo apt install npm
-
sudo ./svc.sh install
-
sudo ./svc.sh start
-
pm2 list
-
pm2 start index.js --name=searchapi
-
pm2 stop searchapi
-
pm2 delete searchapi