roadman 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/README.md +25 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -27,15 +27,10 @@ An efficient, and flexible NodeJS library for building backend services.
27
27
 
28
28
  | Feature | Progress |
29
29
  | ----------------- | -------- |
30
- | ExpressJS (REST API) | ✅ |
31
- | GraphQL API | ✅ |
32
- | Redis (queue, subscriptions) | ✅ |
33
- | [Couchbase](https://github.com/roadmanjs/couchset) | ✅ |
34
- <!-- | Twilio | ❌ |
35
- | Stripe | ❌ |
36
- | MongoDB | ❌ |
37
- | Firebase auth (phone, email...) | ❌ | -->
38
-
30
+ | CORE: expressjs, rest/graphql api, redis, queue, subscriptions | ✅ |
31
+ | [Couchbase](https://github.com/roadmanjs/couchset) - couchset orm | ✅ |
32
+ | [Auth & User](https://github.com/roadmanjs/auth) - phone login, create user resolvers | ✅ |
33
+ | [Firebase](https://github.com/roadmanjs/firebase-admin) - auth, storage, e.t.c | ✅ |
39
34
  ## 1. Install
40
35
  ```bash
41
36
  npm i roadman --save
@@ -95,3 +90,24 @@ const {resolver} = PersonModel.automate({
95
90
  await roadman({resolvers: [resolver]});
96
91
 
97
92
  ```
93
+
94
+
95
+ ## 3. With auth/user resolvers
96
+
97
+ ```ts
98
+ import { couchsetRoadman } from '@roadmanjs/couchset';
99
+ import { firebaseRoadman } from '@roadmanjs/firebase-admin';
100
+ import { getAuthResolvers } from '@roadmanjs/auth';
101
+ import { roadman } from "roadman";
102
+
103
+ const resolvers = [...getAuthResolvers()];
104
+
105
+ const run = async () => {
106
+ await roadman({
107
+ roadmen: [firebaseRoadman, couchsetRoadman],
108
+ resolvers,
109
+ })
110
+ }
111
+
112
+ run();
113
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roadman",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "An efficient, and flexible NodeJS library for building backend services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -89,7 +89,7 @@
89
89
  "jsonwebtoken": "^8.5.1",
90
90
  "lodash": "^4.17.20",
91
91
  "reflect-metadata": "^0.1.13",
92
- "type-graphql": "^1.0.0-rc.2",
92
+ "type-graphql": "^1.1.1",
93
93
  "uuid": "^8.3.2"
94
94
  }
95
95
  }