├── .eslintrc ├── data.sample ├── config.json ├── index.html └── data.json ├── index.js ├── views ├── index.hbs ├── items.hbs ├── layouts │ └── default.hbs └── item.hbs ├── assets ├── item.css ├── items.css ├── main.css └── bid.js ├── package.json ├── LICENSE ├── logic.js └── routes.js /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "indent": ["error", "tab"], 4 | "no-tabs": "off" 5 | }, 6 | "extends": "airbnb" 7 | } 8 | -------------------------------------------------------------------------------- /data.sample/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Auction Name", 3 | "imgix": "some-imgix-source.imgix.net", 4 | "bidinfo": "We will contact the highest bidder on ..." 5 | } 6 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es6 */ 2 | 3 | const express = require('express'); 4 | const routes = require('./routes'); 5 | 6 | const app = express(); 7 | app.use(routes); 8 | 9 | app.listen(process.env.PORT || 8080, process.env.IP || "127.0.0.1"); 10 | -------------------------------------------------------------------------------- /data.sample/index.html: -------------------------------------------------------------------------------- 1 |
2 | Sit dolorum iste excepturi repellendus ex quo rerum voluptates molestiae optio provident. Sed facere quidem suscipit laudantium minus sint. Delectus dicta blanditiis est veritatis officiis voluptatum amet quasi provident. Culpa. 3 |
4 | -------------------------------------------------------------------------------- /views/index.hbs: -------------------------------------------------------------------------------- 1 |{{description}}
25 | {{#if info}} 26 |{{info}}
27 | {{/if}} 28 | {{#if sizes}} 29 |
31 | {{#each sizes}}
32 | {{@key}}: {{this}}
33 | {{/each}}
34 |