⚠️ Notice:
This code has moved into holonym-foundation/id-server.
Development continues there. This repo is no longer maintained.
First, install Bun. You can install it by running:
curl -fsSL https://bun.sh/install | bashOr follow the official installation guide.
Clone the repo.
git clone https://github.com/holonym-foundation/phone-number-server.gitInstall dependencies with bun.
bun installSet environment variables. You might need to contact the team to get the values of some of these variables.
cp .env.example .envRun redis on localhost:6379. You can do this with redis-server OR docker. The docker command might be different depending on your OS.
# redis-server
redis-server
# docker
docker run -p 6379:6379 redisRun the development server.
bun run startOr simply:
bun check-number.tsThis server can also be run using Docker with Bun.
docker build -t phone-number-server .docker run --network host --restart always --env-file .env phone-number-serverThis project is written in TypeScript. You can run type checking with:
bun run type-checkGit practices
We use a style of Gitflow.
- All changes should be pushed to the
devbranch. - If a feature takes a while (e.g., weeks) to implement, prefer creating a feature branch. Once the feature is finished, rebase onto
dev. - The
mainbranch is protected. PRs tomaincan only be merged by authorized individuals. PRs tomainare only merged fromdev.
Linting and formatting
All commits must pass linting and formatting checks.
Run these commands prior to each commit:
# bun run lint-fix
bun run format-fix