Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A simple Blog app based on RESTful routes.

NotificationsYou must be signed in to change notification settings

notDPR/RESTful_Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project shows RESTful routing in a form of a simple Blog app.
Prototype :https://still-reef-69131.herokuapp.com

7 RESTful Routes

NamePathHTTP VerbPurposeMongoose Method
Index/blogsGETList all blogsblog.find()
New/blogs/newGETShow new blog formN/A
Create/blogsPOSTCreate a new blog, then redirect somewhereblog.create()
Show/blogs/:idGETShow info about one specific blogblog.findById()
Edit/blogs/:id/editGETShow edit form for one blogblog.findById()
Update/blogs/:idPUTUpdate particular blog, then redirect somewhereblog.findByIdAndUpdate()
Destroy/blogs/:idDELETEDelete a particular blog, then redirect somewhereblog.findByIdAndRemove()

Resources Used

  • Embedded Javascript Templates :EJS
  • PUT and DELETE requests :Method-Override
  • Database :MongoDB
  • Database Hosting :mLabs
  • Front-end Framework :Semantic UI

  • [8]ページ先頭

    ©2009-2025 Movatter.jp