Skip to content

Commit 084cfed

Browse files
committed
added express api
1 parent fdd28c9 commit 084cfed

File tree

5 files changed

+893
-0
lines changed

5 files changed

+893
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
# starter-express-api
2+
3+
This is the simplest possible nodejs api using express that responds to any request with:
4+
```
5+
Yo!
6+
```

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const express = require('express')
2+
const app = express()
3+
app.all('/', (req, res) => {
4+
console.log("Just got a request!")
5+
res.send('Yo!')
6+
})
7+
app.listen(process.env.PORT || 3000)

0 commit comments

Comments
 (0)