forked from ev-Zahri/Animal-Peek-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
23 lines (19 loc) · 726 Bytes
/
Copy pathserver.js
File metadata and controls
23 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// const app = require('./app');
// const PORT = process.env.PORT || 5000;
// app.listen(PORT, () => {
// console.log(`Server running on port ${PORT}`);
// });
// const { loadAnimalDataset } = require("./controllers/animalController");
// const animalsRoutes = require('./routes/animalRoutes');
// loadAnimalDataset()
// .then(() => {
// console.log("Animal dataset loaded.");
// const PORT = process.env.PORT || 5000;
// app.use("/api/animals", animalsRoutes);
// app.listen(PORT, () => {
// console.log(`Server running on port ${PORT}`);
// });
// })
// .catch((error) => {
// console.error("Failed to load animal dataset:", error);
// });