Git Product home page Git Product logo

kart's Introduction

Project

  1. Node

    • Node 10.16.2 LTS
    • npm init
  2. Libs

    • express
    • cors
    • multer
    • nodemon
      • package.json - "dev": "nodemon ./src/index.js" (npm run dev)
  3. Log

    • log.txt
  4. cURL

    • /get
      curl -X GET \
       http://localhost:5000/ranking-kart \
       -H 'Accept: */*' \
       -H 'Accept-Encoding: gzip, deflate' \
       -H 'Cache-Control: no-cache' \
       -H 'Connection: keep-alive' \
       -H 'Host: localhost:5000' \
       -H 'Postman-Token: 0f457195-0188-46f4-a8f5-4de4dc4db4e9,5fd0d8af-9829-4d1c-a708-0525d51d0216' \
       -H 'User-Agent: PostmanRuntime/7.16.3' \
       -H 'cache-control: no-cache'
      
    • /post
      curl -X POST \
       http://localhost:5000/ranking-kart \
       -H 'Accept: _/_' \
       -H 'Accept-Encoding: gzip, deflate' \
       -H 'Cache-Control: no-cache' \
       -H 'Connection: keep-alive' \
       -H 'Content-Length: 2540' \
       -H 'Content-Type: application/x-www-form-urlencoded' \
       -H 'Host: localhost:5000' \
       -H 'Postman-Token: 22992274-b64b-4b1c-a69e-6cd6f145523e,e48a4c6f-e85e-43e5-bc67-75d6d3bfe719' \
       -H 'User-Agent: PostmanRuntime/7.16.3' \
       -H 'cache-control: no-cache' \
       -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
       -F upFile=@/C:/Users/leo/Downloads/log.txt
      
  5. Start

  6. Test

    • Browser (get) : http://localhost:5000/ranking-kart
    • Postman (post) : import file -> body -> form-data -> key=upFile type=file

kart's People

Contributors

bucceroni avatar

Watchers

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