Representational state transfer(REST) is web standards based architecture and uses HTTP Protocol. It revolves around resource where every component is a resource and a resource is accessed by a common interface using HTTP standard methods.:coffee::sweat_smile:
RESTful Blog App is a web application developed on RESTful Routing using Node.JS, Express.JS, Embedded JavaScript (EJS) and more.:innocent::metal:
🔰Features of app is listed in purpose🔰
Name | Path | HTTP Verb | Purpose | Mongoose Method |
---|---|---|---|---|
Index | /blogs | GET | List all blogs | Blog.find() |
New | /blogs/new | GET | Show new blog form | N/A |
Create | /blogs | POST | Create a new blog, then redirect somewhere | Blog.create() |
Show | /blogs/:id | GET | Show info about one specific blog | Blog.findById() |
Edit | /blogs/:id/edit | GET | Show edit form for one blog | Blog.findById() |
Update | /blogs/:id | PUT | Update a particular blog, then redirect somewhere | Blog.findByIdAndUpdate() |
- app.js is the main file that is the heart of our web application and contains the RESTful Routes defined for each event.
- views directory contains the relevant pages and parials, the EJS templates, that render on each event.
- public/css directory contains neccesary CSS used in web App
- package.json file contains the information towards the various dependencies and packages
📷📷📷📷📷📷📷 Start with Smile😄😄
- Install NodeJS⏬
- Install mongodb⏬
- Create a empty file and Open in your favourite code Editor.....shh...VS Code Editor😉
- Open the terminal window and write
git clone https://github.com/GovindCodes/RESTful-Blog-APP.git
This will files from repository to your local computer.:clock1::relieved::sun_with_face: 5. Next thing to write on terminal is
node app.js
-
HURRAHHH💥 You completed all steps successfully go to localhost:3000 on your browser and enjoy.
-
OHHH WAIT WAIT, you forgot giving Star to the repository.:star::stuck_out_tongue::stuck_out_tongue_winking_eye:
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project:fork_and_knife:
- Follow the Steps for running in local machine just change the link in
git clone
by your forked repository link. - Create your Feature Branch (
git checkout -b feature/AmazingFeature
):sparkler: - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
):arrow_double_up: - Open a Pull Request:arrows_clockwise::bell: