Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoaib-fateh/blog-website-with-nodejs
This is a simple blog website built with Node.js.
https://github.com/shoaib-fateh/blog-website-with-nodejs
ejs express mongodb nodejs
Last synced: about 5 hours ago
JSON representation
This is a simple blog website built with Node.js.
- Host: GitHub
- URL: https://github.com/shoaib-fateh/blog-website-with-nodejs
- Owner: shoaib-fateh
- Created: 2022-10-26T10:09:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-14T13:57:25.000Z (about 1 year ago)
- Last Synced: 2023-10-15T23:25:30.995Z (about 1 year ago)
- Topics: ejs, express, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Website with Node.js
This is a simple blog website built with Node.js.
## Navigation
The website has the following navigation links:
- Home: Displays the list of blog posts.
- About: Provides information about the website.
- Contact: Displays contact information.
- Compose: Allows users to compose new blog posts.## Features
- Displaying a list of blog posts on the home page.
- Viewing individual blog posts.
- Composing new blog posts.
- About and contact pages.## How to Use
1. Clone the repository: `git clone https://github.com/shoaib-fateh/blog-website-with-nodejs.git`
2. Install dependencies: `npm install`
3. Start the server: `npm start`
4. Open your browser and visit `http://localhost:3000`## Folder Structure
The project has the following folder structure:
- `public`: This folder contains static files such as CSS stylesheets, images, and client-side JavaScript files.
- `views`: This folder contains the EJS templates for rendering the different pages of the website.## Dependencies
The project uses the following dependencies:
- `body-parser`: For parsing request bodies.
- `ejs`: For rendering EJS templates.
- `express`: For building the web application.
- `mongodb`: For connecting to MongoDB database.
- `mysql`: For connecting to MySQL database.
- `superheroes`: For generating random superhero names.
- `supervillains`: For generating random supervillain names.## Usage
To use the blog website, follow the steps mentioned in the "How to Use" section above.
## Future Enhancements
Some possible future enhancements for the blog website could include:
- User authentication and authorization.
- Adding comments to blog posts.
- Pagination for the list of blog posts.
- Search functionality.