Spaces:
Sleeping
Sleeping
Download Backend_node/src/index.ts from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/Backend_node/src/index.ts
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/Backend_node/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/Backend_node/src/index.ts
382 Bytes
| import * as dotenv from "dotenv"; | |
| import path from "path"; | |
| dotenv.config({ path: path.join(process.cwd(), '../.env') }); | |
| import { Request, Response } from "express"; | |
| import logger from "./logger/create.logger.js"; | |
| import app from "./app.js" | |
| const PORT = 3000; | |
| app.listen(PORT, (req: Request, res: Response) => { | |
| logger.info(`Server is starting at http://localhost:${PORT}`) | |
| }) |