Download pool/shard011/JavaScript/0068977_app.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 938 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0068977_app.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard011/JavaScript/0068977_app.js
-
curl -L -o 0068977_app.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0068977_app.js
938 Bytes
| var express = require('express'); | |
| var app = express(); | |
| var ENV = require('dotenv').load(); | |
| app.use(express.static('public')); | |
| // TODO: Hook up get route. For when querying by current location is implemented. | |
| // app.get('/', function(req, response){ | |
| // response.sendFile(__dirname + 'public/index.html'); | |
| // }); | |
| var server = app.listen(3000, function () { | |
| var host = server.address().address; | |
| var port = server.address().port; | |
| console.log('Example app listening at http://%s:%s', host, port); | |
| }); | |
| // ========================================= | |
| // PROXY SERVER-SIDE CODE | |
| // ========================================= | |
| // var express = require('express'); | |
| // var portNumber = 3001; | |
| // var app = express(); | |
| // app.get("/", function (req, res) { | |
| // res.send({ response: "This is data returned from the server, proxy style!" }); | |
| // }) | |
| // app.listen(portNumber); | |
| // console.log("Responding server listening on port "+portNumber); |