Skip to content

Commit

Permalink
Set up the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiez-64 committed Jun 14, 2021
1 parent 168b9f2 commit 5f6a157
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const express = require("express");
const dotenv = require("dotenv");
const app = express();

app.use(express.json());

app.get("/", (req, res) => {
res.status(200).json({ message: "hello-world" });
});

const port = process.env.PORT || 4000;

app.listen(port, () => {
console.log(`This app is served on port ${port}`);
});
Empty file removed myapp.js
Empty file.
8 changes: 8 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"dev": "nodemon app.js"
},
"dependencies": {
"dotenv": "^10.0.0",
"express": "^4.17.1"
},
"devDependencies": {
Expand Down

0 comments on commit 5f6a157

Please sign in to comment.