Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,160 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

likecoin-api-public

CircleCI codecov

REST API backend for the like.co platform. Express.js + TypeScript on Node.js 20+, backed by Firebase Firestore. Surface area covers user accounts, OAuth, Cosmos/LikeCoin chain interactions, NFT/book commerce, Stripe-backed fiat purchases, Liker Plus subscriptions, Arweave uploads, and email/notifications.

API docs: https://api.docs.like.co/

Quick start

Requires Node.js >=20.

npm install
npm run dev    # tsx --watch with IS_TESTNET=true, listens on http://127.0.0.1:3000

Common scripts:

npm run lint          # ESLint --fix on src/ and test/
npm run build         # clean → tsc → copy locale JSON files
npm start             # NODE_ENV=production node dist/src/index.js
npm run test          # Vitest (single fork, 60s timeout per test)
npm run test:watch    # Watch mode
npm run test:coverage # v8 coverage

CI (CircleCI, cimg/node:24.10) runs lint → build → start (background) → wget /healthz → test. Replicate this sequence locally before pushing.

Configuration

Runtime config lives in config/config.js (CommonJS, env-driven). Secrets (config/secret.js, config/serviceAccountKey.json, config/arweave-key.json, config/aws.json) are gitignored — obtain them from a maintainer before running outside CI.

Contributing

Architecture, conventions, build pipeline gotchas, and testing setup are documented in AGENTS.md. Read it before making non-trivial changes.

License

GPL-3.0-or-later. See LICENSE.

About

LikeCoin API Public api.docs.like.co

Topics

Resources

Stars

5 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages