Git Product home page Git Product logo

reactcms's Introduction

ReactCMS is a free and open-source content management system (CMS) based on React, Node.js, Express and MongoDB.

Supporting ReactCMS

ReactCMS can be used to create your awesome and fast single-page blogging application. Consider supporting ReactCMS for future improvements. Here are the ways to show some support:

via Patreon Become a backer or sponsor on Patreon.
Make a donation via PayPal.
Star or Fork Drop 5TechCenter/ReactCMS a star or fork it on GitHub.
Spreed the word Share about ReactCMS to your friends, or give it a little tweet!
Publish a new article Become pioneer on publishing articles and forum threads about the blogging application that's made with React, Node.js, Express and MongoDB (MERN).

Thanks for any love and support!

Installation

To use ReactCMS, you must first checkout this repository, or download the .ZIP file and extract its contents, and proceed to the following server and client-side installations:

Installing back-end with Node.js, Express and MongoDB

The "server" directory contains the source code for your app's backend Express server.

Installing front-end React application

The "client" directory contains the source code for your React app.

  • Open /client/src/config.js and configure it for your app.
  • In the "client" directory, run npm install to install its dependencies.
  • In the "client" directory, run npm start to start your ReactCMS app.

How to register the first administrator?

You need to manually modify the created user's data in the database 'users' collection. Here are a few guidelines about it:

  • Register the account that you'll going to convert as administrator.
  • A user data document contains these properties:
{
  email: CREATED_USER_EMAIL
  username: CREATED_USER_NAME,
  hash: CREATED_USER_HASH,
  role: 'subscriber',
  ...
}
  • You just need to $set its role from 'subscriber' to 'admin' like the following:
{
  email: CREATED_USER_EMAIL
  username: CREATED_USER_NAME,
  hash: CREATED_USER_HASH,
  role: 'admin',
  ...
}
  • Here are terminal commands that you may need to run if you're hosting your mongod on your local server:
mongo
use reactcms
db.users.updateOne({ username: 'CREATED_USER_NAME' },{ $set: { role: 'admin' } })
  • If the modified account is currently signed in, sign out and re-sign in it.

Those are the things that you need, you may now post a blog using your administrator account.

reactcms's People

Contributors

5ervant avatar

Stargazers

Ganesh Gandhi 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.