Express js, Node js Rest API tutorial in Hindi 2024
In this tutorial, we will learn how to create a REST API using Express js and Node js. Rest APIs are an essential part of modern web development, as they allow us to interact with our server and database using HTTP requests.
Folder Structure
When creating a Node.js project with Express, it is important to have a well-organized folder structure. This helps in keeping our code clean and maintainable.
. ├── node_modules ├── public │ ├── css │ └── js ├── routes │ ├── index.js │ └── api.js ├── models ├── controllers ├── app.js └── package.json
In this folder structure, ‘node_modules’ folder contains all the project dependencies, ‘public’ folder contains static assets like CSS and JavaScript files, ‘routes’ folder contains route definitions, ‘models’ folder contains data models, ‘controllers’ folder contains route handlers, ‘app.js’ is the entry point of our application, and ‘package.json’ contains project metadata and dependencies.
By following this folder structure, we can easily maintain and scale our project as it grows.
Nice
Nice information
Very knowledgeable and informative video. Pls add filter, sort, search features in this series.
Next video kab aayega
Bhut acche se bataya , no doubt
very informative video
Sir eagerly waiting for this video