Skip to content

Latest commit

 

History

History
55 lines (50 loc) · 2.2 KB

README.md

File metadata and controls

55 lines (50 loc) · 2.2 KB

SSR Node.js Application

This project is a server-side rendering (SSR) Node.js application built using JavaScript, Node.js, Express, MongoDB, EJS, and follows the MVC architecture. It includes functionalities for creating, searching, deleting, updating, and reading all or specific data.

Features

  • Create: Allows users to create new data entries.
  • Search: Enables searching for specific data entries.
  • Delete: Allows users to delete existing data entries.
  • Update: Allows users to update existing data entries.
  • Read All/Specific: Provides endpoints to read all data or specific data based on criteria.

Technologies and Tools Used

  • Node.js: Runtime environment for executing JavaScript code.
  • Express: Web framework for Node.js.
  • MongoDB: NoSQL database for storing application data.
  • EJS: Embedded JavaScript templating for rendering server-side views.
  • Mongoose: MongoDB object modeling for Node.js.
  • Moment: Library for parsing, validating, manipulating, and formatting dates.
  • Express Async Handler: Middleware for handling asynchronous operations in Express.
  • Method Override: Middleware for handling HTTP method overrides.
  • Dotenv: Library for loading environment variables from a .env file.

Folder Structure

ssr-nodejs-app/ │ ├── controllers/ # Contains controller logic │ ├── userController.js │ └── ... │ ├── models/ # Contains Mongoose models │ ├── userModel.js │ └── ... │ ├── routes/ # Contains Express routes │ ├── userRoute │ └── ... │ ├── views/ # Contains EJS templates │ ├── index.ejs │ └── user/edit.ejs ,view.ejs ,add.ejs │ ├── public/ # Contains static assets │ ├── css/ │ ├── js/ │ └── ... │ ├── .env # Environment variables ├── server.js # Main application file ├── package.json # Project dependencies and scripts └── README.md # Project README file