Skip to content
Permalink
Browse files
deleted old files
  • Loading branch information
aa7401 committed Jan 2, 2019
1 parent 9c09ee6 commit b75b87607ac25acd65703038f58d8bec6a652ed2
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 78 deletions.

This file was deleted.

@@ -0,0 +1,21 @@
#!/usr/bin/env node

const Koa = require('koa')
const Router = require('koa-router')
const app = new Koa()
const router = new Router()
const views = require('koa-views')
app.use(require('koa-static')('public'))
const port = 8080

app.use(views(`${__dirname}/views`, { extension: 'html' }, {map: { handlebars: 'handlebars' }}))

router.get('/', async ctx => await ctx.render('hello'))
router.get('/test', async ctx => await ctx.render('csstest'))
router.get('/comparison', async ctx => await ctx.render('comparison'))
router.get('/hello', async ctx => await ctx.render('hello-world'))
router.get('/selectors', async ctx => await ctx.render('selectors'))
router.get('/targets', async ctx => await ctx.render('targets'))

app.use(router.routes())
module.exports = app.listen(port, () => console.log(`listening on port ${port}`))
@@ -1,14 +1,18 @@
{
"name": "01_formatting",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.16.2"
}
"express": "^4.16.2",
"koa": "^2.6.2",
"koa-router": "^7.4.0",
"koa-static": "^5.0.0",
"koa-views": "^6.1.5"
},
"description": ""
}

This file was deleted.

@@ -0,0 +1,20 @@
#!/usr/bin/env node

const Koa = require('koa')
const Router = require('koa-router')
const app = new Koa()
const router = new Router()
const views = require('koa-views')
app.use(require('koa-static')('public'))
const port = 8080

app.use(views(`${__dirname}/views`, { extension: 'html' }, {map: { handlebars: 'handlebars' }}))

router.get('/', async ctx => await ctx.render('boxmodel'))
router.get('/boxmodel', async ctx => await ctx.render('boxmodel'))
router.get('/columns', async ctx => await ctx.render('columns'))
router.get('/floating', async ctx => await ctx.render('floating'))
router.get('/menu', async ctx => await ctx.render('menu'))

app.use(router.routes())
module.exports = app.listen(port, () => console.log(`listening on port ${port}`))
@@ -1,14 +1,18 @@
{
"name": "02_layout",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.16.2"
}
"express": "^4.16.2",
"koa": "^2.6.2",
"koa-router": "^7.4.0",
"koa-static": "^5.0.0",
"koa-views": "^6.1.5"
},
"description": ""
}

0 comments on commit b75b876

Please sign in to comment.