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'}, store: {type: 'enum', options: ["true", "false"]}, image: {type: 'captioned-image-list'}, }, page: { id: {type: 'string', hidden: true}, title: {type: 'string'}, image: {type: 'image'}, body: {type: 'text'}, tag: {type: 'string'}, }, store: { id: {type: 'string', hidden: true}, title: {type: 'string'}, collection: {type: 'string'}, CollectionId: {type: 'string'}, DepartmentId: {type: 'string'}, StoreStatus: {type: 'enum', options: ["open","closed"] }, OpensOn: {type: 'string'}, StoreClosedMessageOne: {type: 'string'}, StoreClosedMessageTwo: {type: 'string'}, FitsLarge: {type: 'enum', options: ["true","false"] }, FittingCodes: {type: 'text'}, BackgroundIsGray: {type: 'enum', options: ["true","false"] }, ClosedStoreImages: {type: 'captioned-image-list'}, }, }, resources: [ { type: 'story' }, { type: 'archive' }, { type: 'hub' }, { type: 'page' }, { type: 'store' }, ], 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...');