A Socket.IO server that saves and relay notes.
- Clone the repository
git clone [email protected]:get0xNotes/socket.git
- Run
cd socket && yarn
- Create a
.env
file containing the following:
POSTGREST_ENDPOINT = "https://pg.example.com/rest/v1"
POSTGREST_APIKEY = "A bearer token to access the endpoint"
SERVER_JWK = '{"alg":"EdDSA","kty":"OKP","crv":"Ed25519","x":"","d":""}'
# Make sure to change the origin to your domain on production
ORIGIN = '*'
- Run
yarn start
MIT License