Skip to content

thutasann/node-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs Microservices with Elastic Search

This is the tiny two microservices with Nodejs from scratch

This repo is mainly focused on Backend.

Tech Stacks

  • Nodejs
  • Prisma
  • MongoDB
  • Jest
  • Nextjs

Deployed URLs

Folder Structure

└───node-kafka
  |    ├───app-backend
  |    |   ├───catalog_service
  |    |   ├───order_service
  |    ├───app-frontend

Scripts

Prisma

npx prisma init
npx prisma generate

Jest

yarn jest --init
yarn test
yarn test catalog_service/src/routes/__test__/catalog.route.test.ts

Tips & Tricks

Express Router Global Snippet in VS Code

{
	"Typescript Express Router": {
		"scope": "javascript,typescript",
		"prefix": "router",
		"body": [
			"router.post(\"/\", (req : Request,res : Response) => {",
			"return res.json({})",
			"})"
		],
		"description": "typescript nodejs router"
	}
}

Releases

No releases published

Packages

No packages published

Languages