Skip to content

A classic blog website, created on Node.js and Express using MongoDB and Mongoose. This process enabled me to work with embedded javascript and to tune my skills with image uploading and management.

Notifications You must be signed in to change notification settings

msalman81/Daily-Journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily-Journal

This is a blog website made using Node.js, Express, MongoDB, and EJS templating. The home page of the website uses EJS templating to use a for loop to look up all the existing posts and render them to the screen. The Blog Schema consists of a title, content, and a image buffer which is used to store the image. I am using lodash to create custom post routes so that whenever a new post is generated it has its own route where the whole post can be read. The "/compose" route can be used to compose a post and it consists of uploading a file for which I have added verification so that only image files are accepted. I am using multer npm package for image uploading and validation and to optimize performance I use "sharp" npm package to resize images.

HOW TO RUN: You can view the project live at https://lit-shelf-33721.herokuapp.com/, or you can download the files and open the terminal and go into downloaded folder and run the command "npm i" to install all the required node modules. Then open a new terminal window and run the MongoShell command "mongod" to run the local database. Then run "node app.js" in the first window to run the application on localhost:3000.

PREVIEW: image

About

A classic blog website, created on Node.js and Express using MongoDB and Mongoose. This process enabled me to work with embedded javascript and to tune my skills with image uploading and management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published