Download pool/shard004/JavaScript/0025169_server.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025169_server.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard004/JavaScript/0025169_server.js
-
curl -L -o 0025169_server.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025169_server.js
889 Bytes
| ; | |
| var loopback = require('loopback'); | |
| var boot = require('loopback-boot'); | |
| global.Promise = require('bluebird'); | |
| var app = module.exports = loopback(); | |
| app.start = function() { | |
| // start the web server | |
| return app.listen(function() { | |
| app.emit('started'); | |
| var baseUrl = app.get('url').replace(/\/$/, ''); | |
| console.log('Web server listening at: %s', baseUrl); | |
| if (app.get('loopback-component-explorer')) { | |
| var explorerPath = app.get('loopback-component-explorer').mountPath; | |
| console.log('Browse your REST API at %s%s', baseUrl, explorerPath); | |
| } | |
| }); | |
| }; | |
| // Bootstrap the application, configure models, datasources and middleware. | |
| // Sub-apps like REST API are mounted via boot scripts. | |
| boot(app, __dirname, function(err) { | |
| if (err) throw err; | |
| // start the server if `$ node server.js` | |
| if (require.main === module) | |
| app.start(); | |
| }); | |