express-app-tea

1.1.4 • Public • Published

Express App Tea

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

Installation

  1. Clone the repository:

    git clone https://github.com/grxkun/express-app-tea.git
  2. Navigate to the project directory:

    cd express-app-tea
  3. Install dependencies:

    npm install

Usage

Start the Express server:

node express-app-tea.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 express-app-tea

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

3.71 kB

Total Files

3

Last publish

Collaborators

  • grxkun