Onion Architecture in Node.jS with Typescript

From Wikipedia

What is Onion Architecture ?

Advantage :

The Layers :

Database Setup :

SQL query for creating student table

Project Setup :

tsconfig.json file
package.json scripts
.env file
File Structure
types.ts
DBConnection.ts
DBManager.ts
StudentDA.ts
index.ts in DA folder
student.service.ts
index.ts inside service folder
student.routes.ts
server.ts

Sankhadip Samanta

Software Developer | Blogger