https://github.com/moaraby/ssr-nodejs
server side rendering application using nodeJs and EJS
https://github.com/moaraby/ssr-nodejs
express mongodb mongoose mvc-architecture node ssr viewengine
Last synced: 12 months ago
JSON representation
server side rendering application using nodeJs and EJS
- Host: GitHub
- URL: https://github.com/moaraby/ssr-nodejs
- Owner: MoARABY
- Created: 2024-04-24T09:12:22.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T09:49:45.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T18:43:31.270Z (about 1 year ago)
- Topics: express, mongodb, mongoose, mvc-architecture, node, ssr, viewengine
- Language: EJS
- Homepage:
- Size: 2.6 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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