Code Monkey home page Code Monkey logo

blog-cms's Introduction

Blog CMS

A simple blog with CMS made with React, Express and MongoDb.

Demo here: https://blog-cms-julien-sebag.herokuapp.com/

How to use

Download the project, run npm install && cd client && npm install, then create a .env file in the root folder with this data:

PORT=5005
ORIGIN=http://localhost:3000

MONGODB_URI=mongodb://localhost/blog-cms

[email protected]
WORD=YourPassword

TOKEN_SECRET=RanDomSecREtKey42

CLOUDINARY_NAME=your-cloudinary-name
CLOUDINARY_KEY=your-cloudinary-key
CLOUDINARY_SECRET=your-cloudinary-secret

Then run db/seeds/create-empty-global.js to create an empty MongoDb collection with global data.

Seed data

If you want to create fake data, you can use the json files in the db folder. Simply import all the files to MongoDb.

Admin panel

Log in to the admin panel at the address /dashboard/login. If you use the fake data provided, you can use these credentials to log in:

email: [email protected] password: Password42

Features

  • Users can sign up and login, but can not access the dashboard before an admin approves them
  • User roles: users can either be a writer (who can only add, edit or delete posts), a moderator (writer features, plus delete comments), and admin (writer and moderator features, plus edit global pages and users)
  • Add / delete posts
  • Add / delete global pages
  • Post comments to posts
  • Contact form, to the specified address in dashboard

Editor

This app uses a markdown editor for the posts. To add React components to use inside, you can add them to the page /client/src/config/markdownConfig.js inside the const markdownConfig/overrides.

blog-cms's People

Contributors

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