Skip to content

Latest commit

 

History

History

disco-core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

disco-core

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

API

You can find the whole documentation for the API under the api module

Build and run

  1. Install the rust toolchain from the official website
  2. Start a Mongodb database. You can either use a Docker container (recommended) or install mongo on your local machine
  3. Clone this repo and cd to disco-core
git clone https://github.com/Altair-Bueno/fuzzy-disco
cd disco-core
  1. Set up the following environment variables:
export MONGODB_URI="mongodb://<username>:<password>@<ip>:<port>/"
  1. Copy your static website to static/
cp <static> static/
  1. Build and run
cargo run --release
cargo run