Code Monkey home page Code Monkey logo

pds5's Introduction

Piece Digital CMS

Getting Started

Dependencies

  1. MongoDB
  2. NodeJS

Install MongoDB

Follow these steps to get MongoDB installed, set up database server authentication, and set up your CMS database connection credentials.

  1. Download and install MongoDB

  2. Start MongoDB: mongod

  3. Connect to MongoDB server: mongo

  4. Switch to admin database: use admin

  5. Here's where you'll create the credentials used to connect to the database server when authentication is enabled.

    Create admin user (has access to every database on the server)

      db.createUser(
        {
          user: "<username>",
          pwd: "<password>",
          roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
        }
      )
    
  6. Here's where you'll create the credentials used to connect to your CMS database.

    Switch to <your database name>: use <your database name>

  7. Create database user (for the database you want to use for the CMS)

      db.createUser(
        {
          user: "<username>",
          pwd: "<password>",
          roles: [ { role: "userAdmin", db: "<database>" }, "readWrite" ]
        }
      )
    
  8. Restart MongoDB with access control: mongod --auth

In order to connect to the database with authentication enabled use this command and use your admin logins: mongo -u "<username>" -p "<password>" --authenticationDatabase "admin"

Install NodeJS

  1. Download and install NodeJS

Install the server

  1. Download the repo
  2. Install dependencies with npm install

Start the server

  1. Do it: npm start

The Dashboard

Visit the dashboard to set up your database connection info and create your first admin user.

pds5's People

Watchers

 avatar  avatar

Forkers

whigg

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.