beech-api 3.8.0-beta.1-rc → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -44
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -728,7 +728,7 @@ Auth0(unix_time, 'your_advance_guard_secret', (error, hashing) => {
|
|
|
728
728
|
|
|
729
729
|
```
|
|
730
730
|
|
|
731
|
-
## # Beech User
|
|
731
|
+
## # Beech User Auth Managements ###
|
|
732
732
|
You can easy management `users` data with Beech, Only ```Store, Update``` NO ```Delete```, Anything you can make DELETE endpoint by yourself
|
|
733
733
|
|
|
734
734
|
```js
|
|
@@ -1169,19 +1169,6 @@ describe("Test endpoint : " + endpoint, () => {
|
|
|
1169
1169
|
|
|
1170
1170
|
|
|
1171
1171
|
# Implementation
|
|
1172
|
-
|
|
1173
|
-
## # Implement with [PM2](https://pm2.keymetrics.io/)
|
|
1174
|
-
[PM2](https://pm2.keymetrics.io/) is a daemon process manager that will help you manage and keep your application online. Getting started with PM2 is straightforward, it is offered as a simple and intuitive CLI, installable via [NPM](https://www.npmjs.com/).
|
|
1175
|
-
|
|
1176
|
-
```sh
|
|
1177
|
-
# Start service as standalone
|
|
1178
|
-
$ pm2 start ./node_modules/beech-api/packages/cli/beech --name <serviceName>
|
|
1179
|
-
|
|
1180
|
-
# OR
|
|
1181
|
-
|
|
1182
|
-
# Start service as cluster mode
|
|
1183
|
-
$ pm2 start ./node_modules/beech-api/packages/cli/beech --name <serviceName> -i <instances>
|
|
1184
|
-
```
|
|
1185
1172
|
|
|
1186
1173
|
## # Implement with [Docker](https://www.docker.com)
|
|
1187
1174
|
|
|
@@ -1231,41 +1218,19 @@ $ docker build -t <imageName> .
|
|
|
1231
1218
|
$ docker service create --replicas <instances> --name <containerName> --publish 9000:9000 <imageName>
|
|
1232
1219
|
```
|
|
1233
1220
|
|
|
1221
|
+
## # Implement with [PM2](https://pm2.keymetrics.io/)
|
|
1222
|
+
[PM2](https://pm2.keymetrics.io/) is a daemon process manager that will help you manage and keep your application online. Getting started with PM2 is straightforward, it is offered as a simple and intuitive CLI, installable via [NPM](https://www.npmjs.com/).
|
|
1234
1223
|
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
Installation the package:
|
|
1240
|
-
|
|
1241
|
-
```
|
|
1242
|
-
$ npm install line-api
|
|
1243
|
-
```
|
|
1244
|
-
|
|
1245
|
-
Create file `Line.js` in `src/helpers` folder and copy code below:
|
|
1246
|
-
|
|
1247
|
-
📂 Line.js
|
|
1248
|
-
```js
|
|
1249
|
-
const Line = require("line-api");
|
|
1250
|
-
|
|
1251
|
-
module.exports = {
|
|
1224
|
+
```sh
|
|
1225
|
+
# Start service as standalone
|
|
1226
|
+
$ pm2 start ./node_modules/beech-api/packages/cli/beech --name <serviceName>
|
|
1252
1227
|
|
|
1253
|
-
|
|
1254
|
-
const notify = new Line.Notify({
|
|
1255
|
-
token: token
|
|
1256
|
-
});
|
|
1257
|
-
notify
|
|
1258
|
-
.send({
|
|
1259
|
-
message: message
|
|
1260
|
-
})
|
|
1261
|
-
.then(console.log);
|
|
1262
|
-
}
|
|
1228
|
+
# OR
|
|
1263
1229
|
|
|
1264
|
-
|
|
1230
|
+
# Start service as cluster mode
|
|
1231
|
+
$ pm2 start ./node_modules/beech-api/packages/cli/beech --name <serviceName> -i <instances>
|
|
1265
1232
|
```
|
|
1266
1233
|
|
|
1267
|
-
Enjoy.
|
|
1268
|
-
|
|
1269
1234
|
# Development
|
|
1270
1235
|
|
|
1271
1236
|
Want to contribute or join for great job!, You can contact to me via
|