A simple Node.js project showcasing a dataset of the planet’s most interesting places. The project is built with native Node HTTP server logic and modular data storage.
server.js- Node HTTP server entry point.package.json- Project metadata and start script.
- Node.js 18 or later
No dependencies are required beyond Node.js.
npm installnpm startThe server listens on port 8000 by default.
GET /api- Intended to return the list of destinations as JSON.
- The project uses ES module syntax (
type: "module"inpackage.json). database/db.jsexportsgetDataFromDB()for consuming destination data in other modules.
Sachin