Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# simple-server

A simple Express.js web server with basic routing.

## Installation

```bash
npm install
```

## Usage

```bash
npm start
```

The server runs on port **7000** using `nodemon` for automatic restarts.

## File Descriptions

| File | Description |
|------|-------------|
| `index.js` | Main entry point. Sets up the Express app, registers routes, and starts the server on port 7000. |
| `patchHandler.js` | Express router module that handles `PATCH /` requests. |
| `test.txt` | A sample text file containing the numbers 1-20, used for testing file serving or upload functionality. |
| `package.json` | Project metadata and npm scripts. |

## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| `GET` | `/` | Returns `"Hello world!"` |
| `PATCH` | `/` | Handled by `patchHandler.js` |