A simple API that uses the CF-IPCountry
header in a Cloudflare worker to determine the requests
country and then return a list of information about said country.
Uses Cloudflare Workers and Hono.
Running locally:
npm run dev
Testing:
# run all tests
npm run tests
# run test coverage
npm run tests:coverage
# run test coverage summary
npm run tests:summary
Linting:
# run ESLint
npm run lint
# fix ESLint errors
npm run lint:fix
# run prettier
npm run prettier
# fix prettier errors
npm run prettier:fix
Deploy to Cloudflare:
npm run deploy:dev
npm run deploy:prod