Download apps/app2/main.js from nestjs/pm2: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/nestjs/pm2/resolve/main/apps/app2/main.js
- Command line
-
hf download hf://spaces/nestjs/pm2/apps/app2/main.js
-
curl -L -o main.js https://huggingface.co/spaces/nestjs/pm2/resolve/main/apps/app2/main.js
298 Bytes
| const http = require('http'); | |
| const server = http.createServer((req, res) => { | |
| res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
| res.end('Hello from App 1\n'); | |
| }); | |
| const PORT = process.env.PORT || 3002; | |
| server.listen(PORT, () => { | |
| console.log(`App 2 running on port ${PORT}`); | |
| }); |