Skip to content

Latest commit

 

History

History

quadratic-connection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Quadratic Connection Service

An Axum HTTP Server for processing the queries on remote data sources

Running

First, copy over the environment variables (customize if applicable):

cp .env.example .env

To run the server:

RUST_LOG=info cargo run

// npm alternative
npm start

Development

To develop with the watcher enabled:

RUST_LOG=info cargo watch -x 'run'

// npm alternative
npm run dev

Testing

To develop with the watcher enabled:

cargo test

// npm alternative
npm run test

// watcher
RUST_LOG=info cargo watch -x 'test'

// npm alternative
npm run test:watch

Linting

To develop with the watcher enabled:

cargo clippy --all-targets --all-features -- -D warnings

// npm alternative
npm run lint

API

Health Checks

Request

curl http://127.0.0.1:3002/health -i

Response

HTTP/1.1 200 OK
content-length: 0
date: Mon, 08 Jan 2024 22:56:23 GMT