Subject :
This first one will start a server on port 3000 for the client app
cd app
npm install
npm run dev
This second one will start a server on port 4000 for the API app
cd api
npm install
npm run dev
With pm2
cd app
npm install
npm run build
pm2 start npm --watch --name "test-next-graphql" -- start
With pm2
cd api
npm install
pm2 start npm --watch --name "test-node-graphql" -- start