practice with node.js
##How to use
npm install
###MongoDB
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"
})
Put JS files into jsfiles
folder
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