This is a Node.js application built with Express framework, demonstrating basic web server functionality, routing, middleware, and API endpoints.
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd nodejs-course-chapter-recording-express
- Install dependencies:
npm install
To start the application in development mode:
npm run dev
To start the application in production mode:
npm start
Access the application at: http://localhost:3000
GET /
- Home pageGET /about
- About pageGET /api/products
- Get all productsGET /api/products/:id
- Get a specific product by IDPOST /api/products
- Create a new productPUT /api/products/:id
- Update a productDELETE /api/products/:id
- Delete a product
app.js
- Main application entry pointroutes/
- Contains route definitionscontrollers/
- Business logic for handling requestsmodels/
- Data modelspublic/
- Static files (CSS, JS, images)views/
- Template files
- Node.js
- Express.js
- Morgan (HTTP request logger middleware)
- Other dependencies as listed in package.json
MIT