Skip to content

OpadijoIdris/Liquifact-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiquiFact Backend

API gateway and server for LiquiFact — the global invoice liquidity network on Stellar. This repo provides the Express-based REST API for invoice uploads, escrow state, and (future) Stellar/Horizon integration.

Part of the LiquiFact stack: frontend (Next.js) | backend (this repo) | contracts (Soroban).


Prerequisites

  • Node.js 20+ (LTS recommended)
  • npm 9+

Setup

  1. Clone the repo

    git clone <this-repo-url>
    cd liquifact-backend
  2. Install dependencies

    npm ci
  3. Configure environment (optional for local dev)

    cp .env.example .env
    # Edit .env if you need Stellar/Horizon/DB settings

Development

Command Description
npm run dev Start API with watch mode
npm run start Start API (production-style)
npm run lint Run ESLint on src/

Default port: 3001. After starting:


Project structure

liquifact-backend/
├── src/
│   └── index.js    # Express app, routes (health, invoices, escrow)
├── .env.example   # Env template (PORT, Stellar, DB placeholders)
├── eslint.config.js
└── package.json

CI/CD

GitHub Actions runs on every push and pull request to main:

  • Lintnpm run lint
  • Build checknode --check src/index.js (syntax)

Ensure your branch passes these before opening a PR.


Contributing

  1. Fork the repo and clone your fork.
  2. Create a branch from main: git checkout -b feature/your-feature or fix/your-fix.
  3. Setup locally: npm ci, optionally cp .env.example .env.
  4. Make changes. Keep the style consistent:
    • Run npm run lint and fix any issues.
    • Use the existing Express/route patterns in src/index.js.
  5. Commit with clear messages (e.g. feat: add X, fix: Y).
  6. Push to your fork and open a Pull Request to main.
  7. Wait for CI to pass and address any review feedback.

We welcome docs improvements, bug fixes, and new API endpoints aligned with the LiquiFact product (invoices, escrow, Stellar integration).


License

MIT (see root LiquiFact project for full license).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%