Skip to content

lonca-works/wtmbjs-4

 
 

Repository files navigation

REST API example with Express.js

Clone the repository:

git clone git@github.com:dashersw/wtmbjs-4.git

Enter the project folder and install dependencies:

cd wtmbjs-4
npm install

Run the project:

node index.js

Final step

Check out the final branch to see the whole project in action.

git checkout final

And run the code again.

You can visit the following URLs;

URL Description
http://localhost:3000 Index page
http://localhost:3000/person People JSON
http://localhost:3000/person/all People list
http://localhost:3000/person/:personId Person detail page with personId

http://localhost:3000/person also supports POST and DELETE actions to create new records or delete given records.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.5%
  • HTML 31.5%