cd frontend
npm i
To start: npm start
cd backend
npm i
cd frontend
npm run build
After this, copy the build subfolder in frontend folder to the backend folder. Now, run (after defining the .env file appropriately in the backend folder):
cd ../backend
node ./index.js
Access the website at localhost:PORT where PORT is defined in .env file.