,

Express.js और Node.js Rest API tutorial हिंदी में 2024, फोल्डर संरचना #nodejstutorial #restapi

Posted by

Express js, Node js Rest API tutorial in hindi 2024

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.

0 0 votes
Article Rating
7 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@shishir102011
4 months ago

Nice

@prabhasharma5461
4 months ago

Nice information

@hanaan6926
4 months ago

Very knowledgeable and informative video. Pls add filter, sort, search features in this series.

@phptraininginstituteindelh3147
4 months ago

Next video kab aayega

@Itanddccom
4 months ago

Bhut acche se bataya , no doubt

@DurgeshKumar-gx1bl
4 months ago

very informative video

@taranewstime6909
4 months ago

Sir eagerly waiting for this video