Crates.io | hq-core |
lib.rs | hq-core |
version | 0.1.0 |
source | src |
created_at | 2020-07-08 01:08:26.867479 |
updated_at | 2020-07-08 01:08:26.867479 |
description | Restful Postgres microservice |
homepage | https://projecthq.ml |
repository | https://github.com/Project-HQ/HQ-Core/ |
max_upload_size | |
id | 262443 |
size | 116,003 |
A Rusty RESTful Postgres Microservice
THIS IS A WORK IN PROGRESS
If you've come across this repo, feel free to reach out and ask about the project. However, it is not currently ready for use. This message will be removed once we are ready for user testing and review.
cd HQ-CORE && echo DATABASE_URL=postgres://postgres_username:postgres_passwd@hostname:5432/hqcore > .env
cargo build
diesel setup
diesel migration run
Tutorial Here
You will want to use rust-musl-builder to create a lightweight image with no dependencies. Once the image is built, run it like so:
docker run --env-file=./path/to/.env --rm --name hq-core -p 8080:8080 hq-core