Skip to content

Commit

Permalink
feat: add boiler plate code
Browse files Browse the repository at this point in the history
  • Loading branch information
shan-shaji committed Sep 18, 2021
0 parents commit ce87906
Show file tree
Hide file tree
Showing 9 changed files with 2,753 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
*.env
16 changes: 16 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const express = require('express')
const morgan = require('morgan')

const userRouter = require('./src/routes/user.router')

const app = express()

if (process.env.NODE_ENV == 'development') {
app.use(morgan('dev'))
}

app.use(express.json())

app.use('/api/v1/user', userRouter)

module.exports = app
Loading

0 comments on commit ce87906

Please sign in to comment.