Get Started
- Do npm install
- run the server: npm start
- run the worker: npm run-script start-worker
it server will run on port- 3001
Use this for pushing messages to queue for invoice MS
curl -X POST
https://meesho-task-queue.firebaseio.com/email-service/tasks.json
-H 'Cache-Control: no-cache'
-H 'Content-Type: application/json'
-H 'Postman-Token: 70ff76ff-98ee-b1df-e852-f07f76043d45'
-d '{
"channel":"create-order",
"order_id": "82"
}'
Sample Order Ids: 41, 42, 43, 44, 45, 46, 80, 81, 83
Project Structure:
bin - will contain all the executable file configs - contains all the files config file db - Schema of individual collections models - contains all the models / classes routes - contains the routes or controllers - API definitions