Skip to content

Commit 242df5d

Browse files
committedDec 8, 2023
feat: boostrap express server
1 parent 3bdacfb commit 242df5d

File tree

6 files changed

+698
-1
lines changed

6 files changed

+698
-1
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.env

‎.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
21

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Overview
2+
3+
This example project will be capable of
4+
5+
- [ ] signing into TradingView
6+
- [ ] getting OHCD data for EURUSD

‎index.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const express = require('express');
2+
const dotenv = require('dotenv');
3+
4+
dotenv.config();
5+
6+
const app = express();
7+
const port = process.env.PORT;
8+
9+
app.get('/', (req, res) => {
10+
res.send('Express + TypeScript Server');
11+
});
12+
13+
app.listen(port, () => {
14+
console.log(`[server]: Server is running at http://localhost:${port}`);
15+
});

0 commit comments

Comments
 (0)
Please sign in to comment.