momtr / basic-cms

πŸ“ƒ very basic CMS system using markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

basic-cms

πŸ“ƒ basic CMS system using markdown

πŸš€ CMS System

This is a content management system. Using such a system, you can create content easily and seamlessly.

πŸͺ NPM packages

  • express for the API
  • firebase-admin for data persistence (NoSQL DB)
  • joi for input validation
  • markdown-it for converting markdown to HTML

🟒 ToDo

  • serif font for body
  • edit article feature
  • grid system with sidebar?
  • global 'new articles' list
  • categories and tags
  • search functionality
  • images

πŸ”’ Install

  1. Clone this repo
$ git clone https://github.com/moritzmitterdorfer/basic-cmd.git
  1. Install NPM packages
$ npm install
  1. Create a Google Firebase project and start a DB. Dowload the credentials file and place it in db/credentials and update the path in db/index.js line 22 and 26:
/** retrieve credentails from json file */
const serviceAccount = require('./credentials/{YOUR_FILE}.json');
/** initialize the app */
admin.initializeApp({
    credential: admin.credential.cert(serviceAccount),
    databaseURL: "https://{YOUR_ADDRESS}.firebaseio.com"
});
  1. Start server
$ npm start
  1. go to localhost:3000 to reach the website

πŸ“ƒ Create Articles

For creating an article, go to localhost:3000/articles/new.

πŸ“ Customize

You can write your own CSS to customize the site (instead of using client/static/style.css). In addition, you can modify the html pages in client/views.

About

πŸ“ƒ very basic CMS system using markdown


Languages

Language:JavaScript 57.5%Language:HTML 28.8%Language:CSS 13.7%