-
Notifications
You must be signed in to change notification settings - Fork 3
Quickstart
Lukasz Sielski edited this page Apr 20, 2016
·
1 revision
You can start from scratch, or use up to date boilerplate. Below we describe step by step project setup (from scratch).
npm init
npm i --save lackey-cms
We would use here my-db-name
as our site database name.
createdb `whoami` || true
createdb 'my-db-name' || true
echo "{}" > lackey.json
We will use default
as project name and core
as main module name (both default values).
mkdir -p sites/default
mkdir -p sites/default/config
mkdir -p sites/default/modules/core
In sites/default/config/default.js
(see boilderplate)
'use strict';
module.exports = {
datasources: {
pg: {
'default': {
dsn: 'postgres://localhost/my-db-name'
}
}
},
rebuild: {
sass: true
},
yml: {
//drop: true,
override: '*'
},
host: 'http://localhost:8888/'
};
In sites/default/modules/core/module.yml
name: My Website
require:
- cms/users
- cms/cms
npm run debug
Get Involved on GitHub or Follow @getlackey on twitter. Code licensed under Apache License v2.0.
Open sourced by Enigma 2015-2016