{"id":21858683,"url":"https://github.com/sdthaker/node.js-mvc-app","last_synced_at":"2025-06-11T00:36:34.137Z","repository":{"id":191970122,"uuid":"408174462","full_name":"sdthaker/Node.js-MVC-App","owner":"sdthaker","description":"A simple MVC app developed using node.js.","archived":false,"fork":false,"pushed_at":"2021-09-19T16:22:32.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T19:49:02.382Z","etag":null,"topics":["bcryptjs","dotenv","ejs-templates","express-session","expressjs","mongodb","mongoose","passport","passport-local"],"latest_commit_sha":null,"homepage":"","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdthaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-19T16:11:48.000Z","updated_at":"2025-01-12T19:29:57.000Z","dependencies_parsed_at":"2023-09-01T20:39:30.136Z","dependency_job_id":null,"html_url":"https://github.com/sdthaker/Node.js-MVC-App","commit_stats":null,"previous_names":["sdthaker/node.js-mvc-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdthaker%2FNode.js-MVC-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdthaker%2FNode.js-MVC-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdthaker%2FNode.js-MVC-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdthaker%2FNode.js-MVC-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdthaker","download_url":"https://codeload.github.com/sdthaker/Node.js-MVC-App/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdthaker%2FNode.js-MVC-App/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259176792,"owners_count":22817249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bcryptjs","dotenv","ejs-templates","express-session","expressjs","mongodb","mongoose","passport","passport-local"],"created_at":"2024-11-28T02:47:21.098Z","updated_at":"2025-06-11T00:36:34.094Z","avatar_url":"https://github.com/sdthaker.png","language":"EJS","readme":"# Node.js MVC App\n\nIntroducing popular architectural pattern Model-View-Controller (MVC) by building and structuring an application in Node.js using MVC.\n\n## What is Model-View-Controller?\nMVC is simply a design or architectural pattern used in software engineering. While this isn’t a hard rule, but this pattern helps developers focus on a particular aspect of their application, one step at a time.\n\nThe main goal of MVC is to split large applications into specific sections that have their own individual purpose.\n\nIt also allows developers to logically structure applications in a secure way, which is portrayed by this application. But first, let’s break down what each aspect of the pattern provides.\n\n### Model\nAs the name implies, a model is a design or structure. In the case of MVC, the model determines how a database is structured, defining a section of the application that interacts with the database. This is where we define the properties of a user that will be store in our database.\n\nThe controller accesses the database through the model. You could say that the model is the heart of the application.\n\n### View\nThe view is where end users interact within the application. Simply put, this is where all the HTML template files go.\n\n### Controller\nThe controller interacts with the model and serves the response and functionality to the view. When an end user makes a request, it’s sent to the controller which interacts with the database.\n\nYou can think of the controller as a waiter in a restaurant that handles customers’ orders, which in this case is the view. The waiter then goes to the kitchen, which is the model/database, and gets food to serve the customers, which is the controller handling the request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdthaker%2Fnode.js-mvc-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdthaker%2Fnode.js-mvc-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdthaker%2Fnode.js-mvc-app/lists"}