Last active
June 3, 2019 17:56
-
-
Save beaucarnes/18ff11ca9228adfe1aed0fe32998cb73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const express = require('express'); | |
| const cors = require('cors'); | |
| require('dotenv').config(); | |
| const app = express(); | |
| const port = process.env.PORT || 5000; | |
| app.use(cors()); | |
| app.use(express.json()); | |
| app.listen(port, () => { | |
| console.log(`Server is running on port: ${port}`); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment