GraphQL backend for a multimedia dictionary
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Lucien Cartier-Tilet 92aed98f90
continuous-integration/drone/push Build is passing Details
Add Content-Type as authorized header
2 weeks ago
migrations Fix word name collision, add two new user-related features 3 weeks ago
src Add Content-Type as authorized header 2 weeks ago
.drone.yml Add Drone CI 4 weeks ago
.editorconfig Add .editorconfig file 1 month ago
.env.example Add ADMIN_KEY variable to context 3 weeks ago
.gitignore Initial commit with basic DB layout 1 month ago
Cargo.toml Fragment graphql module, add Appwrite vars to context 3 weeks ago
LICENSE Add license and README 1 month ago
README.org Update README 3 weeks ago
diesel.toml Make Rust models for database schema 1 month ago
docker-compose.yml Initial commit with basic DB layout 1 month ago

README.org

Ordabok

Introduction

Ordabok is a backend for multimedia dictionaries powered by its users.

Compiling and running the project

This project requires an accessible PostgreSQL database (to store pretty much all of the project's data), an Appwrite instance (for managing user accounts), and an S3 bucket (to store images, videos, and audio). Copy .env.example with

$ cp .env.example .env

and modify the .env file accordingly. You will also need to set the variables for Appwrite and your S3 bucket.

Once this is done, execute the following command to run the backend.

$ cargo run
# or
$ cargo run --release

This makes the API available at http://localhost:8000/, with only three paths:

http://localhost:8000/
GraphiQL interface
GET http://localhost:8000/graphql?query=:query
GET queries for the GraphQL API. However, it does not work due to this issue.
POST http://localhost:8000/graphql
POST queries for the GraphQL API.

License

This project is under the AGPL 3.0 license. You can read the complete text here, and if you just want a quick understanding of it, you can go here.