Skip to content

Instantly share code, notes, and snippets.

@AWolf81 AWolf81/app.js
Created Dec 18, 2018

Embed
What would you like to do?
Basic Express server example
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('An alligator approaches!');
});
app.listen(3000, () => console.log('Gator app listening on port 3000!'));
{
"name": "basic_server",
"version": "1.0.0",
"main": "app.js",
"license": "MIT",
"scripts": {
"start": "node ./app.js"
},
"dependencies": {
"express": "^4.16.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.