Skip to content

charlie0077/express-minimal-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  1. Minimal dependencies
  2. Clean and consise example for API and error handling
  3. Use ES7, async, await and appropriate router middleware

Get Started

  1. Go to the demo site or run 'yarn install && yarn dev' in your terminal
  2. refresh the webpage(localhost:4000/api/item) multiple times and watch the possible results: (1) sync result (2) async result from fake database (3) async error from fake database (4) error thrown from your bussiness logic
  3. read the code.