Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zcong1993/text-share
https://github.com/zcong1993/text-share
Last synced: about 23 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/zcong1993/text-share
- Owner: zcong1993
- Created: 2021-07-08T06:06:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T08:28:44.000Z (9 months ago)
- Last Synced: 2024-05-02T01:16:47.052Z (6 months ago)
- Language: JavaScript
- Homepage: https://blog.cong.moe/post/2021-07-09-text-sharing
- Size: 806 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# text share
> Simple multi-device text sharing
## Deploy your own
### 1. setup [fauna db](https://fauna.com)
- create database and collection
- create index for `shareId`![fauna-index](./public/fauna-index.png)
### 2. deploy to [Vercel](https://vercel.com)
Environment Variables
```env
# your faunadb collection secret
FAUNADB_SECRET=
# white list for shareIds, separated by commas
SHARES_WHITELIST=
# faunadb collection name
FAUNADB_COLLECTION=
# shareId index name
FAUNADB_SHARE_ID_INDEX=
```