/gocms

GoCMS Microservice Platform

Primary LanguageGoMIT LicenseMIT

GoCMS

Official Documentation

A work in proggress wiki can be found on the GoCMS Confluence Site.

Generate Docs

To generate api docs you need to have apidocs installed

Note apidocs will only work on MacOS and Linux
npm install apidoc -g

.env

You will need to have a .env file to do local development with. It goes in the root of the project file. ex:

    # DB Local
    DB_NAME=goCMS
    DB_USER=goCMSbp
    DB_PASSWORD=password
    DB_SERVER=tcp(localhost:3306)

Setup Database

  1. Download MySQL Workbench here:
https://dev.mysql.com/downloads/workbench/
  1. Create a MySQL connection in Workbench (if you don't have one)
    Connection Name: localhost
    Hostname: 127.0.0.1
    Port: 3306
    Username: root
  1. Create a New Schema (database icon)
Schema Name: goCMS
  1. Add a New User
select 'Management Tab' > 'Users and Privliges' > 'Add Account'

    Login Name: goCMSbp
    Limit to Hosts Matching: localhost
    Password: password
    Confirm Password: password

    In the same window, go to 'Schema Privliges Tab' > 'Add Entry...'
    Selected Schema: goCMS

    With the goCMS schema selected, 'SELECT "ALL"' (should select all privliges)
    click 'Apply'

Install & Run govendor

    go get -u github.com/kardianos/govendor
    run govendor sync (in project root)

// TODO - Write optimizer for plugins and themes. Optimizer should look at vendor.js and theme_vendor.js - remove any repeates in theme-vendor.js and save to a secondary file

GRNow Backend Services