app.js: The main application file that sets up the Express server and routes.package.json: Contains the project metadata and dependencies.views/: Contains the Handlebars templates for rendering the views.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the dependencies:
npm install
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000to view the product catalog.
/: Fetches and displays a list of products./product/:id: Fetches and displays details for a specific product by ID.
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- Axios: Promise-based HTTP client for the browser and Node.js.
- Handlebars: Simple templating language.
- Nodemon: Utility that monitors for any changes in your source and automatically restarts your server.
This project is licensed under the MIT License.