Put all the code under lib directory
mkdir lib
This lib directory shared between under server and client.
mkdir public
To server the static files and assets like images.
create touch lib/server.js
To configure express application
Make project as node project run the below command
yarn init
It will create package.json file and give entry point to lib/server.js
To watch server using pm2
To use pm2 run the below commands
For server ready run the command: yarn dev
To check logs run : yarn pm2 logs
To delete server : yarn pm2 delete server
##Step 6:
To run the test cases run yarn test