Skip to content

amit-hegde/CMS_-Content_Management_System-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content Management System

CMS (Content Management System) , users can visit the website to gain knowledge about the topic of their interest and other topics .Where the contents are managed by the admin. Admin add new content , Update the details in the content , and also remove the content. Admin need to login to Admin panel to access the features.

Technology Used:

Back-end:

• Node-Js • Express-Js

Front-end:

• HTML • CSS • Js • EJS

Database:

• MongoDB

Implementation Steps:

Step-1:

• Install required node modules. • Node Modules Used:  Mongoose  EJS  Express  Passport

Step-2:

• Setup the required packages. • Use get() to show the result for provided URL • Use Post() to take the values from post request from the forms

Step-3:

• Create Ejs files which contains HTML and Js for rendering and Displaying the results. • Style the HTML using CSS files. • Connect Ejs files to Node using render().

Step-4:

• Connect node to database using mongoose • Create mongoose Schema which contain the structure for the table • Store the data in database and retrieve data from database as per the requirement.

Step-5:

• For authentication of Admin use passport.js packages • Which check the data entered from login page with database

Step-6:

• Create a Admin panel which consists of two text fields one for Title And another Content. • Which make a post request when submit button is clicked. And the data will be stored in database and reflected in home page.

  1. At www.website.com/ which will redirect to main page of the website where users can get/view the contents

image

  1. Main page shows title and content of around 500 words , for more / full detail by clicking Read More of the required content ,page will be redirected to the detailed content pages Examples: url look like www.website.com/post/60ddd8309d2b4934904e70de

image

  1. When www.website.com/admin is called and if the admin is not logged in ,page will be redirected to Login page www.website.com/admin/login , which take username and password and crosscheck with the database admin details

image

  1. If the Admin is logged in and authenticated www.website.com/admin will be called and Admin can use the admin panel, where admin can Publish new post/content and delete the existing post/contents.

image