c0d3x42 / warp-api-starter-template

A boilerplate template for starting a web services using Warp + SQLx (PostgreSQL) + Redis + Juniper (GraphQL). ❤️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warp-api-starter-template

Inspired by Meh's blog post.

It all started here → meh/meh.github.io#5

To get started

Run docker-compose up to get the PostgreSQL, Redis and Adminer running.

docker-compose up

Adminer could be accessed from http://localhost:8080. Refer docker-compose.yml file for configurations and access credentials. Create the schema using the migrations/v1__schema.sql. Plan is to completely dockerize and automate this step using movine. Since we will require the PostgreSQL up and running with the schema intact in order to build the source as SQLx run the SQL validations with a running database.

cp .env.sample .env
RUST_LOG=info cargo run

The GraphQL playground could be accessed from http://localhost:3535/graphql/playground

About

A boilerplate template for starting a web services using Warp + SQLx (PostgreSQL) + Redis + Juniper (GraphQL). ❤️

License:MIT License


Languages

Language:Rust 97.4%Language:Dockerfile 2.6%