You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`bun run build` - Build the project for production
19
+
-`bun run start` - Start the production server
20
+
21
+
## Self-hosting
22
+
23
+
...
24
+
25
+
## Writing from scratch
26
+
27
+
The inbox API server is pretty simple to write from scratch in any programming language and/or framework. There's only one endpoint that needs to be implemented, which does these three steps:
28
+
29
+
1. Fetch the user's public inbox API key from the Notesnook API.
30
+
2. Encrypt the payload (via libsodium).
31
+
3. Post the encrypted payload to the Notesnook API.
32
+
33
+
You can refer to the [source code](./src/index.ts) for implementation details.
0 commit comments