From ea1d62cd1bcf8d0b05546305172d1c8e9bfdb587 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 Sep 2015 21:27:30 -0400 Subject: readme --- index.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 index.js (limited to 'index.js') 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...'); -- cgit v1.2.3-70-g09d2