espresso-multi
v1.1.4
Published
a simple express app
Downloads
4
Readme
Espresso Multi
This is a simple Express.js application that serves tea-related content.
Installation
Clone the repository:
git clone https://github.com/grxkun/expresso-multi.git
Navigate to the project directory:
cd espresso-multi
Install dependencies:
npm install
Usage
Start the Express server:
node espresso-multi.js
The server will start running on http://localhost:3000
.
Routes
- GET /: Displays a welcome message.
- GET /tea: Responds with a message about enjoying a cup of tea.
- POST /tea: Expects a JSON body with 'flavor' and 'strength' properties. Responds with a message based on the received data.
Example
To access the '/tea' route:
curl http://localhost:3000/tea
To make a POST request to the '/tea' route:
curl -X POST -H "Content-Type: application/json" -d '{"flavor": "green", "strength": "strong"}' http://localhost:3000/tea
License
This project is licensed under the MIT License - see the LICENSE file for details.