Skip to content

Commit

Permalink
added .env file with spotify secrets and dotenv package
Browse files Browse the repository at this point in the history
  • Loading branch information
egimenos committed Sep 4, 2021
1 parent 32a5ce1 commit 459d0bf
Show file tree
Hide file tree
Showing 5 changed files with 3,133 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// example of .env secrets file you need to have
CLIENT_ID=xxx
CLIENT_SECRET=xxx
REDIRECT_URI=xxx
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.DS_Store
.env
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require("dotenv").config();
const express = require("express");

const app = express();

app.get("/", (req, res) => {
res.send("Hello World");
});

const PORT = 8888;

app.listen(PORT, () => {
console.log(`Express is running at localhost:${PORT}`);
});
Loading

0 comments on commit 459d0bf

Please sign in to comment.