https://github.com/messams/simple-http-bun-server
Create, Read, Update, and Delete (CRUD) operations on an array of users
https://github.com/messams/simple-http-bun-server
bun http rest-api server typescript
Last synced: 4 months ago
JSON representation
Create, Read, Update, and Delete (CRUD) operations on an array of users
- Host: GitHub
- URL: https://github.com/messams/simple-http-bun-server
- Owner: messams
- Created: 2025-03-10T04:42:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-10T05:30:34.000Z (about 1 year ago)
- Last Synced: 2025-09-15T12:33:33.425Z (7 months ago)
- Topics: bun, http, rest-api, server, typescript
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple HTTP bun server
## Features
- Create, Read, Update, and Delete (CRUD) operations on an array of users
- Lightweight and fast
- Easy to set up and use
## Requirements
- [Bun](https://bun.sh/) - A fast JavaScript runtime
## Installation
1. Clone the repository:
```sh
git clone https://github.com/m-essam-s/simple-http-bun-server.git
```
2. Navigate to the project directory:
```sh
cd simple-http-bun-server
```
3. Install dependencies:
```sh
bun install
```
## Usage
1. Start the server:
```sh
bun run server.js
```
2. The server will be running at `http://localhost:3003`
## API Endpoints
- `GET /users` - Retrieve all users
- `GET /useres/:id/info` - fetch user by id
- `POST /users/create` - Create a new user
- `PUT /users/:id/update` - Update a user by ID
- `DELETE /users/:id/delete` - Delete a user by ID