Object–relational mapping (ORM) in computer science is a programming technique for converting data between incompatible type systems using object-oriented programming languages.
Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more.
orm
|___node_modules
|___controllers
|___database
|___docs
|___models
|___routes
|___services
|___utils
│ .env
| .gitignore
| app.js
| package-lock.json
| package.json
| README.md
| server.js
Contains all the libraries we require and installed.
The logical functions are here
The database connection
Documentation files
The table structure for database
The end point for our APIs
The helper functions for our controllers
Helper functions for our app like Catch, Error, JWTToken etc.
Environment Variables we use in our application.
The ignored files and folder like node_modules. These will be ignored by git.
We are importing everything into this file and this file will get imported into server.js
Locked dependencies
Package file for node application. It includes the application details, its dependencies etc.
The script file which we use to run.
It's me 😅