Skip to content

Commit

Permalink
Create basic express app
Browse files Browse the repository at this point in the history
  • Loading branch information
dionyziz committed May 19, 2018
1 parent c693291 commit d6134cc
Show file tree
Hide file tree
Showing 5 changed files with 8,009 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const LISTEN_PORT = 3000
const winston = require('winston')
const express = require('express')
const bodyParser = require('body-parser')
const routes = require('./routes/routes.js')
const app = express()

app.use(bodyParser.json())
app.use(bodyParser.urlencoded())
app.use('/', routes)

const server = app.listen(LISTEN_PORT, () => {
winston.info('Blockchain Course API server running on port ' + LISTEN_PORT)
})
Loading

0 comments on commit d6134cc

Please sign in to comment.