Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradtraversy/vanilla-node-rest-api
REST API using Node.js without a framework
https://github.com/bradtraversy/vanilla-node-rest-api
Last synced: 17 days ago
JSON representation
REST API using Node.js without a framework
- Host: GitHub
- URL: https://github.com/bradtraversy/vanilla-node-rest-api
- Owner: bradtraversy
- Created: 2020-10-15T13:00:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T08:04:47.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T03:19:40.246Z (3 months ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 369
- Watchers: 7
- Forks: 277
- Open Issues: 3
-
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