Coder Social home page Coder Social logo

blogrenderingnodejs's Introduction

blogRenderingNodejs

#1.TITLE:
Blog rendering backed

#2.DESCRIPTION:
This aims to create backend for the blogs.This project is done using express server.Output is viewed on Postman. #3.FILE DETAILS:
a.controller:
This file contains all the functions of actions that can be performed.Here ,it includes the controller to fetch all the blogs ,fetch blogs by id and fetch blogs blogs by query parameters.
b.data:
All the data on which the operation is to be performed is included in this folder .All the data is been targetted to data.json file. Thus the data is in the form of json .
c.helpers:
It consists of the class and function to send the response such as successful or unsuccessful or error while running the code.
d.routes:
Routes is the route handler for all the functions,etc.
e.app.js:
This is the main entry point. It contains path to all the routes.Also the port on which the server is running will listen from this entry point.
f.package.json:
It has a record of details such as name,version,description,dependencies,script,author,repository,etc with respect to the current folder.

#OUTPUT:
steps to view output:
1.Install postman.
2.Login with required credentials.
3.create new collection (name:blogRendering).
4.Add request (get) for get-all-blogs (url:http://localhost:3000/blogs)
5.Add request (get) for get-blog-by-id (url:http://localhost:3000/blogs/2rvqpdbpka3n3fhd)
6.add request (get) for get-blog-by-query-parameter (url:http://localhost:3000/blogs/?id=2rvqpdbpka3n3fhd)

#DEMO:
refer the heroko link to view the demo :
1.to view all blogs(link:https://blog-rendering1.herokuapp.com/blogs)\ 2.to view blog by id(link:https://blog-rendering1.herokuapp.com/blogs/2rvqpdbpka3n3fhd)\ 3.to view by query parameter (link:https://blog-rendering1.herokuapp.com/blogs/?id=2rvqpdbpka3n3fhd)

blogrenderingnodejs's People

Contributors

rutuja9696 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.