summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-16 21:27:30 -0400
committerJules Laplace <jules@okfoc.us>2015-09-16 21:37:01 -0400
commitea1d62cd1bcf8d0b05546305172d1c8e9bfdb587 (patch)
tree32854449bf9bfd51883edcdcf8190028b75edafe
parentcf2c15c553b3c3365ce7235b3e00920d07b18a9d (diff)
readme
-rw-r--r--README.md2
-rw-r--r--db.json5
-rw-r--r--index.js59
-rw-r--r--package.json23
-rw-r--r--templates/index.liquid1
5 files changed, 90 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..f14a7883
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+stone island cms
+================
diff --git a/db.json b/db.json
new file mode 100644
index 00000000..01d5a780
--- /dev/null
+++ b/db.json
@@ -0,0 +1,5 @@
+{
+ "story": [],
+ "archive": [],
+ "hub": [],
+} \ No newline at end of file
diff --git a/index.js b/index.js
new file mode 100644
index 00000000..dfb8d557
--- /dev/null
+++ b/index.js
@@ -0,0 +1,59 @@
+var okcms = require('okcms')
+var assign = require('object-assign')
+
+var app = okcms.createApp({
+
+ meta: {
+ project: 'Stone Island'
+ },
+
+ debug: false,
+
+ schemas: {
+ story: {
+ id: {type: 'string', hidden: true},
+ date: {type: 'string'},
+ title: {type: 'string'},
+ image: {type: 'image'},
+ body: {type: 'text'}
+ },
+ archive: {
+ id: {type: 'string', hidden: true},
+ code: {type: 'string'},
+ title: {type: 'string'},
+ image: {type: 'image'},
+ body: {type: 'text'},
+ },
+ hub: {
+ id: {type: 'string', hidden: true},
+ date: {type: 'string'},
+ title: {type: 'string'},
+ subtitle: {type: 'string'},
+ image: {type: 'image'},
+ body: {type: 'text'},
+ link: {type: 'string'}
+ },
+ },
+
+ resources: [
+ { type: 'story' },
+ { type: 'archive' },
+ { type: 'hub' },
+ ],
+
+ views: {
+ '/': {},
+ },
+
+ services: {
+ s3: {
+ key: process.env.S3_KEY,
+ secret: process.env.S3_SECRET,
+ bucket: process.env.S3_BUCKET,
+ maxbytes: 1024*1024*2,
+ }
+ }
+
+}).listen(1337)
+
+console.log('Server listening at port 1337...');
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..7eeb9d15
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "stone-island-cms",
+ "version": "1.0.0",
+ "description": "Stone Island CMS",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/okfocus/stone-island.git"
+ },
+ "author": "OKFocus",
+ "license": "LNT",
+ "bugs": {
+ "url": "https://github.com/okfocus/stone-island/issues"
+ },
+ "homepage": "https://github.com/okfocus/stone-island",
+ "dependencies": {
+ "object-assign": "^2.0.0",
+ "okcms": "git+ssh://git@github.com:okfocus/okcms.git#v0.1.14"
+ }
+}
diff --git a/templates/index.liquid b/templates/index.liquid
new file mode 100644
index 00000000..18ecdcb7
--- /dev/null
+++ b/templates/index.liquid
@@ -0,0 +1 @@
+<html></html>