summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-16 21:27:30 -0400
committerstone <jules+okfprojz@okfoc.us>2015-11-04 23:56:49 -0500
commit74e790fb76197aa7e7ce77bbc6ba9610274c9f02 (patch)
treeb1f581ae326d8f67dbf2e2d69c1ded9efced14fa /index.js
parentcf2c15c553b3c3365ce7235b3e00920d07b18a9d (diff)
readme
Diffstat (limited to 'index.js')
-rw-r--r--index.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 00000000..147dd92f
--- /dev/null
+++ b/index.js
@@ -0,0 +1,56 @@
+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},
+ title: {type: 'string'},
+ image: {type: 'image'},
+ body: {type: 'text'},
+ },
+ archive: {
+ id: {type: 'string', hidden: true},
+ title: {type: 'string'},
+ images: {type: 'triple-captioned-image-list'},
+ },
+ hub: {
+ id: {type: 'string', hidden: true},
+ date: {type: 'date'},
+ title: {type: 'string'},
+ subtitle: {type: 'string'},
+ body: {type: 'text'},
+ link: {type: 'string'},
+ image: {type: 'captioned-image-list'},
+ },
+ },
+
+ 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...');