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...');