Skip to content
/ express-app Public template

Basic code setup for writing REST api using express

Notifications You must be signed in to change notification settings

arshadkazmi42/express-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-app

Boiler plate for REST API in express. Ready to use basic express setup

Setup

  1. Run npm install in root directory
  2. To start the api server node server.js

Route (Dummy)

  • api/compose/express/app

    • Details about the api

Usage

  • Clone this repository
  • Add your routes in server.js
  • Define your controllers in controllers/ directory
  • Write all your library (utility) functions in lib directory
  • Write all unit tests in tests directory
  • Modify details in package.json based on the project you will be building
  • You can change the default post 8000 to anything you want in server.js