GithubHelp home page GithubHelp logo

bootesttasknode's Introduction

Setup Details

Prerequisites

  • node version : v16.13.0 (min.)

Used Technologies

  • NodeJs
  • Express

setup

> git clone https://alkeshrails:[email protected]/alkeshrails/BooTestTaskNode.git
> cd <Project Directory>

Run :-
> npm install
> npm start

After running the start command the server will start on localhost:3001

Implemented Feature (FrontEnd)

  1. /profile
  • Method : GET
  • Description :- This API is used to display the default profile and show the data in the UI
  1. profile/${profileId}
  • Method : GET
  • Description :- This API is used to display the perticular profile ID and show the data in the UI

Created EndPoints (Backend)

  1. /api/profile
  • Methods:- POST ,GET
  • Description :- This end-point is used to create profile and get the profile
  1. /api/post
  • Methods:- POST ,GET

Sorting

/api/post?sort=Best:- It will be sort descending order according to likes /api/post?sort=Recent :- It will be sort recent one on top

  • Description :- This end-point is used to create a post and get a profile
  1. /api/comment
  • Methods:- POST ,GET
  • Description :- This end-point is used to create a comment and get a comment
  1. api/likes

-Methods:- POST,GET -Description :- This end-point is used to add a like a post and unlike post

Other Details

For the testing I have created the postman collection where all the routes are there for easy get idea about the request and response u

POSTMAN collection URL

https://api.postman.com/collections/28652344-b95fa7a7-3b73-4730-a7f6-d22875f5568b?access_key=PMAT-01HAYF0H8A8WDNK6BK8MFR184Z

bootesttasknode's People

Contributors

alkeshrails 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.