https://github.com/pradipchaudhary/vanilla-node-rest-api
Create robust RESTful APIs using pure Node.js. This minimalist repository offers a straightforward foundation for building powerful backend systems without additional frameworks. Perfect for learning or launching fast, lightweight APIs.
https://github.com/pradipchaudhary/vanilla-node-rest-api
api javascript nodejs nodejs-server rest rest-api
Last synced: about 1 month ago
JSON representation
Create robust RESTful APIs using pure Node.js. This minimalist repository offers a straightforward foundation for building powerful backend systems without additional frameworks. Perfect for learning or launching fast, lightweight APIs.
- Host: GitHub
- URL: https://github.com/pradipchaudhary/vanilla-node-rest-api
- Owner: pradipchaudhary
- Created: 2022-02-06T09:19:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T10:33:25.000Z (over 3 years ago)
- Last Synced: 2025-10-08T13:51:06.620Z (9 months ago)
- Topics: api, javascript, nodejs, nodejs-server, rest, rest-api
- Language: JavaScript
- Homepage:
- Size: 309 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vanilla Node REST API
> Full CRUD REST API using Node.js with no framework
This is for learning/experimental purposes. In most cases, you would use something like Express in a production project
```
# Routes
GET /api/products
POST /api/products
GET /api/products/:id
PUT /api/products/:id
DELETE /api/products/:id
```
## Usage
```
# Install dependencies
npm install
yarn install
# Run in develpment
npm run dev
yarn run dev
# Run in production
npm start
yarn start
```
Feel free to add to this and create a PR. I plan on creating a better router, but if you'd like to do that, feel free