Code Monkey home page Code Monkey logo

blog-post's Introduction

Blog Website

This project is a simple blog website built using Node.js, Express.js, and MongoDB. It allows users to view, create, and read articles on various topics. Additionally, users can contact the website administrators through a contact form.

Table of Contents

Features

  • View a list of articles on the home page.
  • Read individual articles by clicking on them.
  • Compose new articles with titles, content, images, and videos.
  • Upload images and videos, or provide URLs for them.
  • Contact administrators through the contact page.

Setup

  1. Clone the repository:

    git clone https://github.com/gauravbhaskar080/blog-post.git
  2. Install dependencies:

    Navigate to the project directory and run:

    cd blog-post
    npm install
  3. Set up MongoDB:

    • Create a .env file in the root directory and add your MongoDB URL:

      MONGO_URL = 'your_mongo_db_url'
      PORT = 3000
      

Usage

  1. Start the server:

    npm start

    The server will start at http://localhost:3000.

  2. Access the website:

    Open a web browser and go to http://localhost:3000.

File Structure

  • models/: Contains Mongoose models for MongoDB.
  • views/: Contains EJS templates for rendering HTML.
  • public/: Holds static files like CSS, images, and JavaScript.
  • dbConnection.js: Establishes a connection to the MongoDB database.
  • index.js: The main entry point of the application.
  • ... (other files): Additional supporting files.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your forked repository.
  5. Create a pull request to the original repository.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code for your own purposes.

blog-post's People

Contributors

gauravbhaskar080 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.