import express from 'express';
import HelperUtils from '../utils/helperUtils';
const Helperservice = new HelperUtils();
const router = express.Router();
/* This routes Serves application home page */
router.get('/', (req, res) => {
res.send('Application Running');
});
/* sample end point */
router.get('/getData', async (req, res) => {
const response = Helperservice.reverse();
res.json({
reverseString: response,
status: 'success',
statusCode: 200,
});
});
export default router;
This is a Node.js module available through the npm registry.
$ npm install es6-nodejs-setup
- Make sure you have recent, stable version of nodejs in your system. Please check version before run
$ node -v
-
Clone or download this repository.
-
Run this following command in your terminal from the project folder
$ npm install
$ npm run lint
$ npm run lint-fix
$ node test
$ node report-coverage
$ node run build
$ node start