-
npm init -y
-
npm install express
-
npm install sucrase nodemon -D
- Create nodemon.json:
{
"execMap":{
"js":"sucrase-node"
}
}
- Add section scripts in package.json:
"scripts":{
"dev":"nodemon src/server.js"
}
-
Create a folder /api/src and create file server.js
- To initiate server in api folder:
npm run dev
- To initiate server in api folder:
-
npm install kafkajs
-
npm init -y
- Create /src folder 2.1. Create a file index.js
-
npm install kafkajs
Code Challenge: https://www.youtube.com/watch?v=-H8pD7sMcfo