Created
September 12, 2019 07:31
-
-
Save LintangWisesa/26688035a7cebc91c12823297205479d to your computer and use it in GitHub Desktop.
Express app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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