1.1.4 • Published 1 year ago

espresso-multi v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Espresso Multi

This is a simple Express.js application that serves tea-related content.

Installation

  1. Clone the repository:

    git clone https://github.com/grxkun/expresso-multi.git
  2. Navigate to the project directory:

    cd espresso-multi
  3. 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.