Browse Source

Initial release v1.0-rc1

KaKi87 10 months ago
parent
commit
40f6ec2892
5 changed files with 100 additions and 8 deletions
  1. 5
    5
      LICENSE
  2. 32
    3
      README.md
  3. 26
    0
      gplay.js
  4. 16
    0
      index.js
  5. 21
    0
      package.json

+ 5
- 5
LICENSE View File

@@ -1,5 +1,5 @@
1
-MIT License
2
-Copyright (c) 2018 KaKi87
3
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+MIT License
2
+Copyright (c) 2018 KaKi87
3
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 32
- 3
README.md View File

@@ -1,3 +1,32 @@
1
-# KPlaySearch
2
-
3
-KPlaySearch (KaKi's Google Play search engine) allows you to perform advanced G-Play search, using filters and sorting features.
1
+# KPlaySearch
2
+KPlaySearch (KaKi's Google Play search engine) allows you to perform advanced G-Play search, using filters and sorting features. [Demo](https://playsearch.kaki87.net/)
3
+
4
+## Getting Started
5
+
6
+### Prerequisites
7
+- NodeJS
8
+- Yarn
9
+
10
+### Installing
11
+```
12
+yarn install
13
+yarn start
14
+```
15
+
16
+## Built With
17
+Node modules :
18
+- [google-play-scraper](https://github.com/facundoolano/google-play-scraper) - GPlay API
19
+- [Socket.IO](https://socket.io/) - Real time client/server
20
+
21
+Web components :
22
+- [FontAwesome](https://fontawesome.com/) - Icon pack
23
+- [UIKit](https://getuikit.com/) - Front end framework
24
+- [JavaScript Cookie](https://github.com/js-cookie/js-cookie) - JS cookie API
25
+
26
+## Authors
27
+**KaKi87 (Tiana Lemesle)** - *Initial work*
28
+
29
+Special thanks to ribt, DotDotDot, TheDevKiller, Fomys and Guysmow from the *french* [CQSCMQPI](https://discord.gg/79JjWTF) Discord server.
30
+
31
+## License
32
+This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

+ 26
- 0
gplay.js View File

@@ -0,0 +1,26 @@
1
+import GPlay from 'google-play-scraper';
2
+
3
+module.exports = {
4
+	search: (query, callback) => {
5
+		GPlay.search({
6
+			term: query.name,
7
+			num: query.number,
8
+			price: query.price,
9
+			fullDetail: true
10
+		})
11
+		.then(res => {
12
+			let i = 0;
13
+			res.forEach(app => {
14
+				GPlay.permissions({ appId: app.appId })
15
+				.then(permissionsList => {
16
+					app.permissions = permissionsList;
17
+					i++;
18
+					if(i === res.length)
19
+						callback(res);
20
+				})
21
+				.catch(err => console.log(err));
22
+			});
23
+		})
24
+		.catch(err => console.log(err));
25
+	}
26
+};

+ 16
- 0
index.js View File

@@ -0,0 +1,16 @@
1
+import Play from './gplay.js';
2
+import express from 'express';
3
+import http from 'http';
4
+import socketio from 'socket.io';
5
+
6
+const app = express();
7
+app.use(express.static('public'));
8
+
9
+const server = http.createServer(app);
10
+server.listen(3593);
11
+
12
+const io = socketio.listen(server);
13
+
14
+io.on('connection', socket => {
15
+	socket.on('search', query => Play.search(query, res => socket.emit('res', res)));
16
+});

+ 21
- 0
package.json View File

@@ -0,0 +1,21 @@
1
+{
2
+  "name": "kplaysearch",
3
+  "version": "1.0.0",
4
+  "description": "Free, in-app free and ad free G-Play search",
5
+  "main": "index.js",
6
+  "author": "KaKi87",
7
+  "license": "MIT",
8
+  "dependencies": {
9
+    "express": "^4.16.3",
10
+    "google-play-scraper": "^6.2.0",
11
+    "http": "^0.0.0",
12
+    "socket.io": "^2.1.1"
13
+  },
14
+  "devDependencies": {
15
+    "babel-preset-env": "^1.7.0",
16
+    "babel-register": "^6.26.0"
17
+  },
18
+  "scripts": {
19
+    "start": "node start.js"
20
+  }
21
+}

Loading…
Cancel
Save