NOTE: The Slothpixel API is currently in early development - some features are missing and/or incomplete.
- This project provides the Slothpixel API for consumption.
- This API powers the Slothpixel UI, which is also an open source project.
- Raw data comes from the Hypixel API.
- A public deployment of this code is maintained by The Slothpixel Project.
- Microservices: Node.js
- Database: Redis
- Install Docker:
curl -sSL https://get.docker.com/ | sh. If you are on Windows, make sure you shared the working drive with Docker. - Install Docker Compose:
curl -L "https://github.com/docker/compose/releases/download/1.17.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose. If you are on Windows, docker-compose comes with the msi package. - Create .env file with required config values in KEY=VALUE format (see config.js for full listing of options)
HYPIXEL_API_KEYYou need this in order to access the Hypixel API. You can get the API key by typing/apion Hypixel.
- Start containers and initialize databases:
docker-compose up - Make some changes and commit them.
- Submit a pull request. Wait for it to be reviewed and merged.
- OPTIONAL Add your Minecraft UUID to the
CONTRIBUTORS.jsfile. - Congratulations! You're a contributor.
- The API runs on port 5000 by default.
- File changes made in the host directory get mirrored into the container.
- Get a terminal into the running container:
docker exec -it slothpixel-core bash - The process manager
pm2is used to manage the individual services. Each is run as a separate Node.js process.pm2 listSee the currently running services.pm2 start manifest.jsonStart all the services according to the manifest filepm2 start manifest.json --only webStarts a specific servicepm2 stop webStop a specific servicepm2 stop allStop all the servicespm2 logs webInspect the output of a servicedocker system pruneCleans your system of any stopped containers, images, and volumes- Tests are written using the mocha framework.
npm testruns the full test suite.- Use
mochaCLI for more fine-grained control over the tests you want to run.
- Join us on Discord (https://discord.gg/ND9bJKK)! We're always happy to help and answer questions.
- Development started in April 2017
- Project based on The OpenDota Project
