Skip to content

Commit

Permalink
added express api
Browse files Browse the repository at this point in the history
  • Loading branch information
korostelevm committed Dec 8, 2021
1 parent fdd28c9 commit 084cfed
Show file tree
Hide file tree
Showing 5 changed files with 893 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# starter-express-api

This is the simplest possible nodejs api using express that responds to any request with:
```
Yo!
```
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const express = require('express')
const app = express()
app.all('/', (req, res) => {
console.log("Just got a request!")
res.send('Yo!')
})
app.listen(process.env.PORT || 3000)
Loading

0 comments on commit 084cfed

Please sign in to comment.