batzner / meanpress

A very simple CMS based on the MEAN stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meanpress

A very simple CMS based on the MEAN stack, written in ECMAScript 6.

Installation

  1. Install node (v6.9.2) and npm (v3.10.9) by downloading the installer.
  2. Install and run the mongoDB community server. Create a database.
  3. Run npm install and npm install --prefix public/javascripts/lib in the project's root directory.
  4. Set the mongoDB URL in server/config/general.js and set REGISTRATION_ENABLED: true.
  5. Run npm start and go to localhost:3000.

Setup

  1. Go to localhost:3000/register.
  2. Create a user and click register. From now on, visit localhost:3000/login to log in.
  3. Deactivate registering again in the config.

Deployment to Production

First time

  1. Install node and mongoDB on your host. For AWS, I can recommend this tutorial.
  2. sudo git clone https://github.com/batzner/meanpress.git and cd meanpress
  3. sudo npm install gulp forever -g
  4. sudo vim server/config/general-prod.js - Change your mongoDB URL, port etc. here

Every time

  1. sudo git pull
  2. sudo npm install and sudo npm install --prefix public/javascripts/lib
  3. sudo gulp
  4. sudo forever stopall
  5. sudo npm run-script server and test the site in your browser.
  6. sudo npm run-script forever to detach.

About

A very simple CMS based on the MEAN stack


Languages

Language:JavaScript 65.3%Language:HTML 28.7%Language:CSS 6.0%