Coder Social home page Coder Social logo

social-cops's Introduction

Social Cops

Build Status codecov Scrutinizer Code Quality

Technical Requirements

  • Node version: greater than 6.
  • npm version: greater than 3.
  • yarn version: greater than 1.3.

Below are the steps to run the project into your local machine:

  • Clone the repository: git clone https://github.com/Piyush3079/social-cops.git
  • Go to the project: cd social-cops
  • Run yarn or npm install
  • Starting the project on port 3000: npm start or yarn start
  • Running tests yarn test or npm run test to run tests for lint and code coverage.
  • Creating production build: yarn prod:build or npm run prod:build.
  • Running poduction build on port 3000: yarn prod:start or npm run prod:start.

Docker image

  • Image is uploaded on docker hub: https://hub.docker.com/r/piyush3079/social-cops/
  • Use docker pull piyush3079/social-cops to pull the docker image.
  • run docker run -p 8080:3000 piyush3079/application to run the docker image on port 8080 of your localhost.
  • run docker stop <CONTAINER_ID> to stop the running container.

Project Routes

  • /get_token a post request to get authentication token for authenticating future requests.
  • /download_file a post request to send the url of the image and get the base64 string of the image in response.
  • /add_patch a patch request to send the initial object and a patch object to applt patches on the initial object.

Paramaters specifications

  • For Token: username is [email protected] and password id random-password.
  • For image download: The url should have the name of the image in the end, eg, https://www.moda-cani.it/gallery/big/2957.jpg.
  • For patchinf the object: The request should have 'Content-Type' as 'application/json' for sending the json data in the request. The data should have two objects. First object is the the object on which the patch is to be applied and second object contains what patch operations are to be applied and on what element of the object. A sample object is placed in the sample.json file for reference.

Github Handle

  • Repository url: https://github.com/Piyush3079/social-cops.
  • Raising issues: https://github.com/Piyush3079/social-cops/issues.
  • Making pull requests: https://github.com/Piyush3079/social-cops/pulls.

social-cops's People

Contributors

piyush3079 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

pv-912

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.