Skip to content

Creating a netflix backend clone with TDD/BDD, DDD, Node.js + MongoDB

Notifications You must be signed in to change notification settings

luizcalaca/netflix-clone-backend

Repository files navigation

Netflix Backend clone with Node.js

Domaing Driven Design (DDD) + BDD (Behavior Driven Development) + MongoDB implementation

Tests

npm run test

Running

npm install
npm run dev

MongoDB MER

image

Routes

Post Movie

http://localhost:3001/movies

{
	"type": "calaca",
	"title": "[email protected]",
	"cover": "112334",
	"logo": "asdf",
	"thumb": "asdf",
	"description": "asdf",
	"artists": ["asdf", "asdf"],
	"gender": ["asdf", "asdf"],
	"cenes_moments": ["asdf", "asdf"]
}

Post Season

http://localhost:3001/seasons/63558b15a43e1e255fbdb6fe

{
	"title": "[email protected]"
}

Post Episode

http://localhost:3001/episodes/63558bfa6b42b510b9cf82fb

{
	"title": "[email protected]",
	"description": "asdf",
	"number": "654",
	"cover": "cover.png"
}