espresso-multi

1.1.4 • Public • Published

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.


Package Sidebar

Install

npm i espresso-multi

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

3.72 kB

Total Files

3

Last publish

Collaborators

  • grxkun