The enVoi API provides resolution and search services for VOI (.voi) names and addresses. For API documentation and usage, visit api.envoi.sh.
- Node.js 18 or later
- Mimir (https://github.com/cswenor/mimir)
- Mimir Functions (not yet documented)
- Clone the repository:
git clone https://github.com/xarmian/envoi-api.git
cd envoi-api
- Install dependencies:
npm install
- Create a
.env
file in the root directory:
PUBLIC_SUPABASE_URL=https://envoi.supabase.co
PUBLIC_SUPABASE_ANON_KEY=
-
Configure Mimir (not yet documented)
-
Start the development server:
npm run dev
The API will be available at http://localhost:3000
.
For production deployment:
- Build the application:
npm run build
- Start the production server:
npm start
Consider using a process manager like PM2 for production deployments:
npm install -g pm2
pm2 start build/index.js --name envoi-api
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Run tests (
npm test
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Keep commits focused and atomic
Run the test suite:
npm test
Run tests in watch mode during development:
npm run test:watch
This project is licensed under the MIT License - see the LICENSE file for details.