Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 2.03 KB

README.md

File metadata and controls

65 lines (40 loc) · 2.03 KB

GraphQL API with Rust, async-graphql, actix-web, and Postgres

Dependency status License

This repository contains a template for building a GraphQL API using Rust🦀, async-graphql, actix-web, and Postgres.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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

Getting started

  1. Clone the repository
git clone https://github.com/korir248/actixweb-async-graphql.git
  1. Navigate to the project directory:
 cd actixweb-async-graphql
  1. Setup database with diesel cli tool using .env file

Create a .env file using .env.example.txt as a template

diesel setup
  1. Run the application
cargo run

Usage

After starting the server, you can interact with the interactive GraphiQL interface at http://localhost:4000.

Contributing

If you want to contribute to this project, please fork it and send a pull request.

License

This project uses the following license: LICENSE