All Projects → bradtraversy → Vanilla Node Rest Api

bradtraversy / Vanilla Node Rest Api

REST API using Node.js without a framework

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].