Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 885 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 885 Bytes

Phone Book app & Node as server side

A simple html & js app for managing phone-book

Structure

  • html/css for main layout
  • js (dhtml) to generate phone-book table dynamically
  • static json files for mocking API api/*.json

Live preview

Open https://nmatei.github.io/phone-book-html/

Configure the app (API)

if you have an API that makes all CRUD operations, you can integrate it by changing js/phone-book.js API && ACTION_METHODS

Enable Cors for external API

CORS docs

Running the app

with nodejs server

one time:

npm install serve -g

daily usage

serve .

Open: http://localhost:5000/

other web servers

host the folder on other servers as static content