This crate contains the source code for disco-core
, the main component on
fuzzy-disco
. The program mainly focuses on two tasks
- Providing a fast and reliable JSON API
- Serving a website written in Vue.js
You can find the whole documentation for the API under the api
module
- Install the rust toolchain from the official website
- Start a Mongodb database. You can either use a Docker container (recommended) or install mongo on your local machine
- Clone this repo and cd to disco-core
git clone https://github.com/Altair-Bueno/fuzzy-disco
cd disco-core
- Set up the following environment variables:
export MONGODB_URI="mongodb://<username>:<password>@<ip>:<port>/"
- Copy your static website to
static/
cp <static> static/
- Build and run
cargo run --release
cargo run