Provides the fast metadata query API for SpringRTS Rapid protocol.
System architecture:
This project uses docker-compose. Install Docker if you haven't.
(TODO: Describe instructions on installing Postgres. But rather than that, do server compilation inside a Docker container?)
We need to install Postgres so Diesel can build and link. This Postgres won't actually be used for connectivity, only for compilation.
Install latest Postgres from https://www.postgresql.org/download/windows/
setx PQ_LIB_DIR "C:\Program Files\PostgreSQL\13\lib"
Install Postgres (Ubuntu instructions given below):
sudo apt update
sudo apt install postgresql postgresql-contrib libpq-dev
Build the server.
cargo build
Install and startup all services.
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build
Populate the data from disk:
cargo run --bin update -- --root-folder place-on-disk
docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
PS: Don't run with the --build
See this gist for how to setup docker-compose on AWS: https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9
- Store .env on GitHub
- Explain sprd binary
- use sprd as a library instead of copy pasting parts