Coder Social home page Coder Social logo

jsam2412 / hashbrown-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hashbrowncms/hashbrown-cms

0.0 1.0 0.0 83.3 MB

A free and open-source headless CMS

Home Page: http://hashbrown.rocks

License: MIT License

JavaScript 88.36% CSS 8.97% HTML 2.67%

hashbrown-cms's Introduction

HashBrown CMS

A free and open-source headless CMS built with Node.js and MongoDB

NOTICE: Updating to v1.2

  • The /db folder for the mongodb docker volume has been moved, along with all other docker related files, to the /docker folder. After you pull the latest changes, make sure to manually move your /db folder to /docker/db before you restart the container.
  • The /plugins folder has been unversioned, so please remove all content in this directory (except for custom plugins you want to keep, of course)

Installing HashBrown

First make sure you have these dependencies met:

  • node.js
  • mongodb
  • imagemagick
  • optional:
    • docker & docker-compose
    • nodemon

Then clone the code and install the dependencies:

git clone https://github.com/HashBrownCMS/hashbrown-cms.git -b stable --single-branch --recursive
cd ./hashbrown-cms
npm install

Running HashBrown

Building and starting the server for production:

npm start

Building/watching frontend files:

npm run build:frontend
npm run watch:frontend

Using Docker:

npm run start:docker
npm run watch:docker
npm run stop:docker

Using nodemon:

npm run watch:nodemon

Updating HashBrown

To update the core HashBrown version and all of its dependencies:

npm run update

Or manually:

cd /to/your/hashbrown/dir
git pull
git submodule update --recursive --init
npm install
webpack 

Remember to restart the server after updating (see "Running HashBrown" above)

Configuring MongoDB

Using environment variables:

  • MONGODB_HOST: host(s), split by comma, default value is localhost
  • MONGODB_PORT: port(s), split by comma
  • MONGODB_USERNAME: username
  • MONGODB_PASSWORD: password
  • MONGODB_PREFIX: database name prefix, default value is hb_
  • MONGODB_OPTIONS: connection options, JSON string containing key/value pairs.

Using /config/database.cfg

{
  "host": "host" | ["host1", "host2"] | "host1,host2",
  "port": "port" | [port1, port2] | "port1,port2",
  "username": "<username>",
  "password": "<password>",
  "prefix": "<database name prefix>",
  "options": {
    "<key>": "<value>",
    ...
  }
}

Getting started

Contribute

If you'd like to contribute to HashBrown development, you can make a pull request to our repo or contact us about becoming a collaborator

Talk to us

Matrix: #hashbrowncms:matrix.org

Report issues

If you have questions, bug reports or anything else of the sort, please use the issue tracker

hashbrown-cms's People

Contributors

andrelion avatar hancandy avatar milesleif avatar mrzapp avatar pvoznyuk avatar republica-dk avatar silend 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.