/SimpleNodeServer

Simple node server that provides json GET apis for testing

Primary LanguageJavaScript

Installation

  1. git clone
  2. npm install

Run

npm start

To use

Place html/js/css files to public_html directory.

Server api

  • Add *.json files to api folder to create simple GET test apis.
  • Use POST requests to write to files (if file contains and array new content is pushed to array, else conten is overwritten)
  • Add folders to create paths i.e. api\mycomments\comments.json will translate to localhost:3000/api/mycomments/comments