https://github.com/ismaileub/simple-server-using-pure-node-js
A basic HTTP server built using only core Node.js modules no external frameworks. It reads data from a JSON file and serves it through RESTful routes. A great starting point to understand how servers work under the hood with Node.js.
https://github.com/ismaileub/simple-server-using-pure-node-js
json node-js server
Last synced: about 2 months ago
JSON representation
A basic HTTP server built using only core Node.js modules no external frameworks. It reads data from a JSON file and serves it through RESTful routes. A great starting point to understand how servers work under the hood with Node.js.
- Host: GitHub
- URL: https://github.com/ismaileub/simple-server-using-pure-node-js
- Owner: ismaileub
- Created: 2025-05-31T14:38:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-16T17:40:26.000Z (about 1 year ago)
- Last Synced: 2025-06-16T18:45:17.342Z (about 1 year ago)
- Topics: json, node-js, server
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js API with File-Based Storage
This is a simple **CRUD API** server implemented with pure **Node.js**.
It stores data in a **JSON file** instead of a traditional database β perfect for small projects, prototyping, or learning Node.js fundamentals.
## πΉ Features πΉ
β
**Create** a new item
β
**Read** all items or a single item by its title
β
**Update** an itemβs body by its title
β
**Delete** an item by its title
β
File-based persistence (JSON)
β
Pure Node.js (without Express or additional libraries)
## πΉ Installation πΉ
1. **Clone the repository:**
```bash
git clone https://github.com/ismaileub/simple-server-using-pure-node-js.git
cd simple-server-using-pure-node-js
```
## πΉ Starting the server πΉ
```bash
node server.js
```
The server will be up and running at [http://localhost:5000](http://localhost:5000).
## πΉ Express Version πΉ
If you want a similar server implemented with Express, check this repository:
[https://github.com/ismaileub/simple-server-using-express](https://github.com/ismaileub/simple-server-using-express)
β
**Happy coding!**