Skip to content
Permalink
2885e258cc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (12 sloc) 337 Bytes
const Koa = require('koa')
const Pug = require('koa-pug')
const routes = require('./routes/index')
const app = new Koa()
const port = 8080
const pug = new Pug({
viewPath: './views',
basedir: './views',
app: app
});
app.use(routes.routes())
module.exports = app.listen(port, ()=>console.log(`listening on port ${port}`))