|
23 | 23 |
|
24 | 24 | 1. [API entry & Health checking](source/controller/Base.ts) |
25 | 25 | 2. [User & Session](source/controller/User.ts) |
| 26 | + - Email OTP (One Time Password) |
26 | 27 | 3. [OAuth sign in](source/controller/OAuth.ts) |
27 | 28 | - recommend to use with [Next SSR middleware][16] |
28 | | -4. [Activity logging](source/controller/ActivityLog.ts) |
| 29 | +4. [WebAuthn sign in](source/controller/WebAuthn.ts) |
| 30 | + - recommend to use with [Passwordless ID][17] |
| 31 | +5. [Activity logging](source/controller/ActivityLog.ts) |
| 32 | +6. [File object storage](source/controller/File.ts) |
29 | 33 |
|
30 | 34 | ## Best practice |
31 | 35 |
|
32 | 36 | 1. Install GitHub apps in your organization or account: |
33 | 37 |
|
34 | | - 1. [Probot settings][17]: set up Issue labels & Pull Request rules |
35 | | - 2. [PR badge][18]: set up Online [VS Code][19] editor entries in Pull Request description |
| 38 | + 1. [Probot settings][18]: set up Issue labels & Pull Request rules |
| 39 | + 2. [PR badge][19]: set up Online [VS Code][20] editor entries in Pull Request description |
36 | 40 |
|
37 | | -2. Click the **[<kbd>Use this template</kbd>][20] button** on the top of this GitHub repository's home page, then create your own repository in the app-installed namespace above |
| 41 | +2. Click the **[<kbd>Use this template</kbd>][21] button** on the top of this GitHub repository's home page, then create your own repository in the app-installed namespace above |
38 | 42 |
|
39 | 43 | 3. Click the **[<kbd>Open in GitHub codespaces</kbd>][8] button** on the top of ReadMe file, then an **online VS Code development environment** will be started immediately |
40 | 44 |
|
41 | | -4. Recommend to add a [Notification step in GitHub actions][21] for your Team IM app |
| 45 | +4. Recommend to add a [Notification step in GitHub actions][22] for your Team IM app |
42 | 46 |
|
43 | | -5. Remind the PMs & users of your product to submit **Feature/Enhancement** requests or **Bug** reports with [Issue forms][22] instead of IM messages or Mobile Phone calls |
| 47 | +5. Remind the PMs & users of your product to submit **Feature/Enhancement** requests or **Bug** reports with [Issue forms][23] instead of IM messages or Mobile Phone calls |
44 | 48 |
|
45 | | -6. Collect all these issues into [Project kanbans][23], then create **Pull requests** & add `closes #issue_number` into its description for automation |
| 49 | +6. Collect all these issues into [Project kanbans][24], then create **Pull requests** & add `closes #issue_number` into its description for automation |
46 | 50 |
|
47 | 51 | ## API Usage |
48 | 52 |
|
|
57 | 61 | | :------------------------: | :--------------------------: | |
58 | 62 | | `APP_SECRET` | encrypt Password & Token | |
59 | 63 | | `DATABASE_URL` | PostgreSQL connection string | |
60 | | -| `SUPABASE_PROJECT_URL` | [Supabase][24] project URL | |
| 64 | +| `SUPABASE_PROJECT_URL` | [Supabase][25] project URL | |
61 | 65 | | `SUPABASE_ANON_KEY` | Supabase anon key | |
62 | | -| `AWS_S3_END_POINT` | [AWS S3][25] endpoint URL | |
| 66 | +| `AWS_S3_END_POINT` | [AWS S3][26] endpoint URL | |
63 | 67 | | `AWS_S3_BUCKET` | AWS S3 bucket name | |
64 | 68 | | `AWS_S3_ACCESS_KEY_ID` | AWS S3 access key id | |
65 | 69 | | `AWS_S3_SECRET_ACCESS_KEY` | AWS S3 secret access key | |
|
80 | 84 | pnpm dev |
81 | 85 | ``` |
82 | 86 |
|
83 | | -or just press <kbd>F5</kbd> key in [VS Code][19]. |
| 87 | +or just press <kbd>F5</kbd> key in [VS Code][20]. |
84 | 88 |
|
85 | 89 | ### Migration |
86 | 90 |
|
@@ -143,12 +147,13 @@ git push origin master --tags |
143 | 147 | [14]: https://github.com/anttiviljami/openapi-backend |
144 | 148 | [15]: https://jestjs.io/ |
145 | 149 | [16]: https://github.com/idea2app/Next-SSR-middleware |
146 | | -[17]: https://github.com/apps/settings |
147 | | -[18]: https://pullrequestbadge.com/ |
148 | | -[19]: https://code.visualstudio.com/ |
149 | | -[20]: https://github.com/new?template_name=REST-Node-ts&template_owner=idea2app |
150 | | -[21]: https://github.com/kaiyuanshe/kaiyuanshe.github.io/blob/bb4675a56bf1d6b207231313da5ed0af7cf0ebd6/.github/workflows/pull-request.yml#L32-L56 |
151 | | -[22]: https://github.com/idea2app/REST-Node-ts/issues/new/choose |
152 | | -[23]: https://github.com/idea2app/REST-Node-ts/projects |
153 | | -[24]: https://supabase.com/ |
154 | | -[25]: https://aws.amazon.com/s3/ |
| 150 | +[17]: https://webauthn.passwordless.id/ |
| 151 | +[18]: https://github.com/apps/settings |
| 152 | +[19]: https://pullrequestbadge.com/ |
| 153 | +[20]: https://code.visualstudio.com/ |
| 154 | +[21]: https://github.com/new?template_name=REST-Node-ts&template_owner=idea2app |
| 155 | +[22]: https://github.com/kaiyuanshe/kaiyuanshe.github.io/blob/bb4675a56bf1d6b207231313da5ed0af7cf0ebd6/.github/workflows/pull-request.yml#L32-L56 |
| 156 | +[23]: https://github.com/idea2app/REST-Node-ts/issues/new/choose |
| 157 | +[24]: https://github.com/idea2app/REST-Node-ts/projects |
| 158 | +[25]: https://supabase.com/ |
| 159 | +[26]: https://aws.amazon.com/s3/ |
0 commit comments