Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

clonalejandro/NodeTemplate

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeTemplate 🍩

My personal template for my apirest in node

Setup

  • Execute in your terminal yarn or npm i
  • Finally execute yarn start or npm start

Usage

You can add actions editing the file action.js with this syntax:

{
  id: 'user',//The url for your endpoint example localhost:3000/api/user
  type: 'post',//The http method you have post, get, put & delete
  callback: (req, res) => {
    //TODO: The callback for request & response
  }
}

You can change the app port in the index.js editing the const app

About

My personal template for my apirest in node 🍩

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.