Skip to content

Commit

Permalink
setup express
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiosilveira committed Oct 4, 2022
1 parent 194ed47 commit c71879e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
console.log('Hello world!');
import http from 'http';
import Express from 'express';

const PORT = process.env.PORT || 3000;
const app = Express();

app.use(Express.json());
app.use(Express.urlencoded({ extended: true }));

http.createServer(app).listen(() => console.log(`server listening at ${PORT} 🚀`));

0 comments on commit c71879e

Please sign in to comment.