Skip to content

Simple node server that provides json GET apis for testing

Notifications You must be signed in to change notification settings

matas-valuzis/SimpleNodeServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple node server that provides json GET apis for testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published