compliance-edge-graphql-server
v1.7.0-alpha.61
Published
GraphQL server for TradeBlotter with Knex.js
Maintainers
Readme
Compliance Edge GraphQL Server
A GraphQL server implementation for Trade Blotter functionality using Apollo Server and Knex.js for database operations.
Prerequisites
- Node.js 20+ (for ES modules support)
- SQL Server 2017+
- pnpm
Installation
- Clone the repository:
cd compliance-edge-graphql-server- Install dependencies:
pnpm install- Create environment file:
cp .env.example .env- Configure your environment variables in
.env:
For SQL Server:
PORT=4000
NODE_ENV=development
DB_CLIENT=mssql
DB_HOST=localhost
DB_PORT=1433
DB_NAME=ComplianceEdge
DB_USER=sa
DB_PASSWORD=your_password
DB_ENCRYPT=true
DB_TRUST_SERVER_CERTIFICATE=true
DB_POOL_MIN=2
DB_POOL_MAX=10
GRAPHQL_INTROSPECTION=true
GRAPHQL_PLAYGROUND=trueRunning the Server
Development Mode (with auto-reload):
pnpm run start:devProduction Mode:
pnpm startThe server will start at http://localhost:4000 (or your configured PORT).
GraphQL API Usage
Access Apollo Studio
Once the server is running, open your browser and navigate to:
http://localhost:4000/api/graphql