Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.03 KB

rust-graphql-with-dataloader

A Rust GraphQL API with actix-web, async-graphql, diesel and dataloader

Starting

Just run, and wait for a while since the initial compilation is slow...

docker-compose up -d 

but after the start the graphql api will be accessible at http://localhost:8080/ in POST you can access a playground at http://localhost:8080/ GET

Development

Consider that for running the project in development mode you should use these commands for starting the database and the Container for building and starting the application.

Initial build for the Images.

docker-compose build

Initialize the Database

docker-compose up -d db

Initialize the API container attaching the bash command

docker-compose run api bash

Production

For running in the production mode just execute the command:

docker-compose up -d