Skip to content

Permissionless, Privacy-Focused Social dApp - Zuko (Backend)

Notifications You must be signed in to change notification settings

usezuko/zuko-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zuko - Backend

Zuko server to build Tableland API with Express and TypeScript. It powers the Zuko app using Sismo Connect.

API Docs

API Documentation: https://documenter.getpostman.com/view/24722250/2s9YR6ZtJc

Run Locally

Install dependencies:

  npm i

Start the server:

  npm run dev

Run on Prod

Install dependencies:

  npm i; npm run build

Start the server:

  npm run start

Environment Variables

To run this project, you will need to add the following environment variables to your .env file:

WALLET_PRIVATE_KEY=paste_your_private_key_here
SISMO_CONNECT_APP_ID=0x123456789

JWT_SECRET=your_json_web_token
WHITELISTED_IPS=127.0.0.1

TABLELAND_USER_DATABASE=user_db_123
TABLELAND_COMMUNITY_DATABASE=community_db_123
TABLELAND_USER_COMMUNITY_DATABASE=user_community_db_123
  • For WALLET_PRIVATE_KEY export your wallet private key from your wallet.
  • For TABLELAND_[NAME]_DATABASE paste your tableland database names from tableland.xyz.
  • For WHITELISTED_IPS paste your public IPv4 address to prevent unauth access to tableland DBs.