Moe-Counter rewritten in TypeScript with using Dragonfly (or any other Redis compatable database) and fastify.
This project was made for node:20-alpine, however it can be used with almost any node version. Please, use npm package manager instead of yarn / any other.
Demo is available on count.akame.moe
- Make sure that docker is installed
- Run
docker build -t tag .(replacetagwith your image name)
WEB_HOSTNAME- web hostname to listen (default:127.0.0.1)WEB_PORT- web port to listen (default:3000)DATABASE_URL- redis connection url (default:redis://127.0.0.1:6379)
npm run lint- run eslint task to check is everything oknpm run dev- runsrc/index.tsin development mode (using ts-node)npm run build- buildsrc/**.tsfiles intodist/**.jsnpm run start- run builtdist/index.js
@starkow/logger- fancy console loggercommon-tags- misc string utilitiesdotenv- parse .env filefastify- web serverredis- database connectionmime-types- parsing themesimage-size- parsing image size
eslint- standardjs config with custom ruleshusky- git hooks to avoid "style: lint" commits with lint fixestypescript- used for compiling .ts filests-node- used for development