Initial commit

This commit is contained in:
Rodrigo Pinto 2020-02-18 22:53:38 -05:00
commit d7af9332c1
1674 changed files with 119641 additions and 0 deletions

17
server.js Normal file
View file

@ -0,0 +1,17 @@
const express = require('express')
const app = express()
const port = 3000
const bodyparser = require('body-parser')
const path = require('path')
// Middleware
const apiRoutes = require('./middleware/api.js')
// Bodyparser
app.use(bodyparser.urlencoded({ extended: true }))
app.use(bodyparser.json())
// Routing
app.use('/api', apiRoutes)
app.listen(port, () => console.log(`Server listening on port ${port}`))