This repository contains a template for building a GraphQL API using Rust🦀, async-graphql, actix-web, and Postgres.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have met the following requirements:
- You have installed Rust. If not, follow the instructions on the official Rust website.
- You have installed Postgres. If not, follow the instructions on the official Postgres website.
- You have installed
diesel-cli
. If not, follow instruction from their official site Diesel.rs or using the following
cargo install diesel_cli --no-default-features --features postgres
- Clone the repository
git clone https://github.com/korir248/actixweb-async-graphql.git
- Navigate to the project directory:
cd actixweb-async-graphql
- Setup database with diesel cli tool using .env file
Create a .env
file using .env.example.txt
as a template
diesel setup
- Run the application
cargo run
After starting the server, you can interact with the interactive GraphiQL interface at http://localhost:4000.
If you want to contribute to this project, please fork it and send a pull request.
This project uses the following license: LICENSE