$ mkdir client server $ npm i express mongoose dotenv $ npm i --save-dev nodemon concurrently
cd client npx create-react-app rm -rf .git (To remove git repo in client folder)
"change main in package.json to server.js"
const express = require('express'); const app = express()
const PORT = process.env.PORT || 5000
app.listen(PORT, () => {
console.log(Server is running on ${PORT}
);
})
node_modules node_modules/ /.pnp .pnp.js
/coverage
/build
.DS_Store .env.local .env.development.local .env.test.local .env.production.local
npm-debug.log* yarn-debug.log* yarn-error.log*
node server/server.js