-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
21 lines (16 loc) · 898 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
play this: https://www.youtube.com/watch?v=d-diB65scQU
Sing along:
here's a little code I wrote, please read the README word for word, don't worry, you got this
in every task there may be trouble, but if you worry you make it double, don't worry, you got this
ain't got no sense of what is REST? just concentrate on learning Express, don't worry, you got this
your file is getting way too big, bring a Router and make it thin, don't worry, be crafty
there is no data on that route, just write some code, you'll sort it out… don't worry, just hack it…
I need this code, but don't know where, perhaps should make some middleware, don't worry, just hack it
Pull your server into this file and start it!
*/
const server = require('./api/server');
const port = process.env.PORT || 9000;
server.listen(port, () => {
console.log(`\n.:: Server Running on http://localhost:${port} ::.\n`)
})