A blazing fast API for Minecraft faces
![]() |
9 éve | |
---|---|---|
images | 9 éve | |
lib | 9 éve | |
test | 9 éve | |
.buildpacks | 10 éve | |
.editorconfig | 10 éve | |
.gitignore | 9 éve | |
.travis.yml | 9 éve | |
CONTRIBUTING.md | 10 éve | |
LICENSE | 10 éve | |
Procfile | 10 éve | |
README.md | 10 éve | |
app.json | 9 éve | |
config.example.js | 9 éve | |
package.json | 9 éve | |
www.js | 9 éve |
Crafatar serves Minecraft avatars based on the skin for use in external applications.
Inspired by Gravatar (hence the name) and Minotar.
Image manipulation is done by lwip. 3D renders are created with node-canvas, based on math by confuser.
There are usually a few open issues.
We welcome any opinions or advice in discussions as well as pull requests.
Issues tagged with show where we could especially need your help!
Please visit the website for details.
Install the dokku-redis plugin.
dokku redis:start
dokku apps:create crafatar
dokku config:set crafatar BIND=0.0.0.0 PORT=5000
For persistent images and logs:
dokku docker-options:add crafatar deploy "-v /var/lib/crafatar/images:/app/images"
dokku docker-options:add crafatar deploy "-v /var/log/crafatar:/app/logs"
If you want to listen on extra domains:
dokku domains crafatar:add example.com
Add dokku remote and deploy!
git remote add dokku dokku@example.com:crafatar
git push dokku master
npm install
redis-server
npm start
npm test
If you want to debug failing tests:
# show logs during tests
env VERBOSE_TEST=true npm test
It can be helpful to monitor redis commands to debug caching errors:
redis-cli monitor