Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aryantyagi1/web-server-node-bun
This project contains two implementations of a basic HTTP server, one using Bun and the other using Node.js.
https://github.com/aryantyagi1/web-server-node-bun
bun bun-server http-server node-service web-server
Last synced: about 2 months ago
JSON representation
This project contains two implementations of a basic HTTP server, one using Bun and the other using Node.js.
- Host: GitHub
- URL: https://github.com/aryantyagi1/web-server-node-bun
- Owner: ARYANTYAGI1
- Created: 2024-11-09T12:33:33.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T12:53:58.000Z (about 2 months ago)
- Last Synced: 2024-11-09T13:38:05.760Z (about 2 months ago)
- Topics: bun, bun-server, http-server, node-service, web-server
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Servers in Bun and Node.js
This project contains two implementations of a basic HTTP server, one using Bun and the other using Node.js.
## Project Structure
- `bun-server.js` - Contains the code to start a server using Bun.
- `node-server.js` - Contains the code to start a server using Node.js.## Usage
### Requirements
- **Bun** installed for running the `bun-server.js` file.
- **Node.js** installed for running the `node-server.js` file.### Starting the Servers
#### Bun Server
To run the Bun server, use the following command:
```bash
bun bun-server.jsTo run the Node server, use the following command:
```bash
node node-server.js