hq-core

Crates.iohq-core
lib.rshq-core
version0.1.0
sourcesrc
created_at2020-07-08 01:08:26.867479
updated_at2020-07-08 01:08:26.867479
descriptionRestful Postgres microservice
homepagehttps://projecthq.ml
repositoryhttps://github.com/Project-HQ/HQ-Core/
max_upload_size
id262443
size116,003
Adam Musciano (needmorecowbell)

documentation

README

Build Status

HQ-Core

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.

How to Run

  1. Create a postgresql server with an empty database on a linux box, name the table hqcore and create a user that is allowed to have remote access to the table.
  2. Add your connection info to the env folder of HQ-Core: cd HQ-CORE && echo DATABASE_URL=postgres://postgres_username:postgres_passwd@hostname:5432/hqcore > .env
  3. Get your dependencies: cargo build
  4. Setup the db with diesel: diesel setup
  5. Run any migrations (if changes were made): diesel migration run
  6. Server should now be available on port 8080 over http

Dockerize It

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

Commit count: 36

cargo fmt