Giter VIP home page Giter VIP logo

bookmarks-manager's Introduction

Documentation

Description

Api for manage bookmarks. Add new bookmark type photo or video saved on mongoDB database and get list from videos or photos links.

init project

  • Install modules

    npm i

Run project

  • Run server

    npm start

Tests

Unit tests

  • Run tests

    npm test

url routes to test on postman

  • Get data from external link for video example

    http://localhost:3000/api/test/video

  • Get data from external link for photo example

    http://localhost:3000/api/test/photo

  • Video links

    • url :

      http://localhost:3000/api/videos

    • Post new video link

      Request : POST

      key : url

      value : https://www.flickr.com/photos/feuilllu/45771361701/

    • Get list of videos

      request : GET

    • Get one video

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/videos/6284f5aec97d824f1fd60934

    • Update video

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/videos/6284f5aec97d824f1fd60934

      Set values title, author, creationDate, publishDate, thumbnail, type, width, height and duration on body

    • Delete video

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/videos/6284f5aec97d824f1fd60934

  • Photo links

    • url :

      http://localhost:3000/api/photos

    • Post new photo link

      request : POST

      key : url

      value : https://www.flickr.com/photos/feuilllu/45771361701/

    • Get list of photos

      request : GET

    • Get one photo

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/photos/6284f5aec97d824f1fd60934

    • Update photo

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/photos/6284f5aec97d824f1fd60934

      Set values title, author, creationDate, publishDate, thumbnail, type, width, height on body

    • Delete photo

      Get _id value of one document saved and pass in params

      example : localhost:3000/api/photos/6284f5aec97d824f1fd60934

Unit tests

  • Run unit tests

    npm test

bookmarks-manager's People

Watchers

James Cloos avatar gnondpom09 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.