https://github.com/coderboy-raiyan/vanilla-node-rest-api
Here I have created Restful API using Raw Node JS. One great thing about this project is that your data will persist in a JSON file database. without any framework. 🔥🚀
https://github.com/coderboy-raiyan/vanilla-node-rest-api
json-database node-server nodejs restful-api
Last synced: 11 months ago
JSON representation
Here I have created Restful API using Raw Node JS. One great thing about this project is that your data will persist in a JSON file database. without any framework. 🔥🚀
- Host: GitHub
- URL: https://github.com/coderboy-raiyan/vanilla-node-rest-api
- Owner: coderboy-raiyan
- Created: 2022-09-12T08:29:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T13:25:29.000Z (over 3 years ago)
- Last Synced: 2025-01-17T09:10:36.862Z (about 1 year ago)
- Topics: json-database, node-server, nodejs, restful-api
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- 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