Skip to content

zld/JSPatch-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSPatch-Server

practice with node.js

##How to use

Install packages

npm install

###MongoDB

Test Data

db.relationship.insert({
    appName: "AAA",
    platform: "iOS",
    version: "1.0.0",
    file: "patch-ios-1.0.0"
},
{
    appName: "AAA",
    platform: "iOS",
    version: "2.0.0",
    file: "patch-ios-1.0.0"
},
{
    appName: "AAA",
    platform: "Android",
    version: "1.0.0",
    file: "patch-android-1.0.0"
},
{
    appName: "BBB",
    platform: "Android",
    version: "2.0.0",
    file: "patch-android-2.0.0"
})

JS Files

Put JS files into jsfiles folder

Security

Request with URL

Params Type Description

appName String name of App

deviceType String iOS or Android
(case-insensitive)
appVersion String version of App
// GET -> Get js file
http://localhost:3000/jspatch?deviceType=iOS&appVersion=2.0.0&appName=hfs

// POST -> Refresh Cache
http://localhost:3000/jspatch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published