This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
db: { | |
connectionString: '' || process.env.DB_CONNECTION_STRING, | |
}, | |
someService: { | |
someApiKey: '' || process.env.SOME_API_KEY, | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let loggerBuilder = require('./logger.js'); | |
let config = require('./config.js'); | |
let express = require('express'); | |
let app = express(); | |
let logger = new loggerBuilder(); | |
app.use(express.json()); | |
app.use(express.urlencoded({ | |
extended: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let express = require('express'); | |
let app = express(); | |
app.use(express.static('dist')); | |
app.listen(3000, () => { | |
console.log('Server is up and running!'); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
border-radius: 8px; | |
border: 1px solid #dadce0; | |
padding: 35px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="mx-auto box"> | |
<div class="col-12 text-center"> | |
<h4>ToDo</h4> | |
</div> | |
<div class="col-12 text-center"> | |
<h5 class="lead">Add a new todo item.</h5> | |
</div> | |
<br /> | |
<div class="col-12"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const axios = require("axios"); | |
export default { | |
name: "ToDo", | |
data() { | |
return { | |
todos: [], | |
todo: { | |
Content: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS | |
simple-http-kubes us-east1 1.10.9-gke.5 35.229.48.250 f1-micro 1.10.9-gke.5 6 RUNNING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:lts | |
ADD index.js /index.js | |
CMD node index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const os = require('os'); | |
const http = require('http'); | |
const requestHandler = (req, res) => { | |
console.log('Request incoming from ' + req.connection.remoteAddress); | |
res.writeHead(200); | |
res.end('Success! You\'ve hit ' + os.hostname() + ' on ' + os.platform() + '!'); | |
}; | |
const server = http.createServer(requestHandler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
server_name example.com sub.example.com; | |
index index.html index.htm | |
root /path/to/my/root/html/dir; # Default is /var/www/html | |
location / { | |
try_files $uri $uri/ =404; | |
} |
NewerOlder