GithubHelp home page GithubHelp logo

blogapp-nodejs's Introduction

BlogApp

BlogApp is a simple blogging platform built with Node.js, Express, and MongoDB. It uses Handlebars as the templating engine and Passport for authentication.

Features

  • User authentication with Passport
  • Flash messages for alerts and errors
  • CRUD operations for blog posts and categories
  • Sorting and filtering of blog posts by categories

Modules

  • express: Framework for building web applications on Node.js
  • express-handlebars: A Handlebars view engine for Express
  • body-parser: Middleware to handle HTTP POST request in Express.js
  • mongoose: MongoDB object modeling tool
  • express-session: Session middleware for Express
  • connect-flash: Flash messages for Express applications
  • passport: Authentication middleware for Node.js

Setup

  1. Install dependencies with npm install
  2. Start the server with npm start
  3. Visit http://localhost:8081 in your browser

Routes

  • /admin: Admin routes
  • /usuarios: User routes
  • /: Home page, displays all blog posts
  • /postagem/:slug: Displays a single blog post
  • /categorias: Displays all categories
  • /categorias/:slug: Displays all blog posts in a category
  • /404: Error page

Database

The application uses MongoDB for data storage. It connects to a local MongoDB instance by default (mongodb://localhost/blogapp).

Public

The public directory contains all static files used in the application.

Running the Application

The application runs on port 8081 by default. You can change this by modifying the port variable in app.js.

Note

This is a basic blogging platform and is not intended for production use without further development and security considerations.

blogapp-nodejs's People

Contributors

ccostarod 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.