Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
/ api Public archive

A personal GraphQL API, written in Rust. Deprecated as of 2021-09-05.

Notifications You must be signed in to change notification settings

hulloitskai/api

Repository files navigation

api

A personal GraphQL API, implemented in Rust.

Build Status

This branch is a WIP! For previous implementations in Go, see the v2 branch.

Development

Setup

  1. Ensure you have the required development dependencies:

  2. Clone and enter repo:

    git clone [email protected]:stevenxie/api
    cd api
  3. Configure .env:

    cp .env.example .env  # copy template
    vi .env               # edit template
  4. Install dependencies, set up hooks, and build targets:

    cargo build

Workflow

# Start dependencies (database, etc.):
docker-compose up -d

# Run server:
cargo run -- serve

# Format source code:
cargo fmt

# Run tests:
cargo test

# Check and lint source code:
cargo check && cargo clippy