Skip to content

Instantly share code, notes, and snippets.

@LintangWisesa
Created September 12, 2019 07:31
Show Gist options
  • Save LintangWisesa/26688035a7cebc91c12823297205479d to your computer and use it in GitHub Desktop.
Save LintangWisesa/26688035a7cebc91c12823297205479d to your computer and use it in GitHub Desktop.
Express app
var express = require('express')
var bodyParser = require('body-parser')
var cors = require('cors')
var routeSaya = require('./route/route')
var app = express()
app.use(cors())
app.use(bodyParser.json())
app.use(routeSaya)
app.get('/', (req, res)=>{
res.send('<h1>Express & Firestore</h1>')
})
app.listen(3210, ()=>{
console.log('Server aktif @port 3210')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment