44 Commits

Author SHA1 Message Date
Tudor Stanciu
9ad0d9be93 feat: update version to 1.2.0 and refactor backend structure
- Changed main entry point from `index.js` to `server.js` in package.json.
- Created a new `app.ts` file to encapsulate Express app configuration.
- Removed old `index.ts` file and moved server logic to `server.ts`.
- Updated nodemon configurations to point to the new `server.ts`.
- Added new middleware for API key authentication with public endpoint support.
- Modified validators to accept any string for IPs, allowing handlers to determine validity.
- Added integration tests for batch lookup and health endpoints.
- Implemented unit tests for error handling and validation middleware.
- Updated `tsup` and `vitest` configurations to reflect new entry points and testing setup.
2025-10-13 01:14:37 +03:00
Tudor Stanciu
dd9a45bf18 feat: implement professional error handling and refactor backend architecture 2025-10-12 19:15:28 +03:00
Tudor Stanciu
dbb821fe92 Merged PR 110: feat: Implement Node BitipClient for GeoIP service integration
feat: Implement BitipClient for GeoIP service integration

- Add BitipClient class for interacting with the Bitip GeoIP Service.
- Implement methods for health check, version info, IP location lookup, detailed IP location, and batch IP lookup.
- Introduce validation for IP addresses with IpValidator utility.
- Normalize URLs with UrlNormalizer utility.
- Create constants for API keys and routes.
- Add TypeScript types for client options, responses, and errors.
- Set up ESLint and Prettier configurations for code quality.
- Add unit tests for BitipClient and IpValidator.
- Configure TypeScript and build settings with tsup.
- Set up Vitest for testing framework and coverage reporting.
2025-10-12 11:54:44 +00:00
Tudor Stanciu
ad348edf0b feat: implement batch IP lookup functionality in .NET client; add validation and error handling 2025-10-09 23:58:38 +03:00
Tudor Stanciu
f227523fce feat: refactor Bitip.Client to enhance IP location services and improve error handling 2025-10-08 01:27:46 +03:00
Tudor Stanciu
27b3073907 feat: enhance GeoIP service to include ASN information in detailed responses 2025-10-08 00:34:24 +03:00
Tudor Stanciu
0c2bdb3d11 feat: update version info structure to use buildDate and commitHash instead of createdAt and gitRevision 2025-10-07 01:21:43 +03:00
Tudor Stanciu
7b47a121a0 chore: update package versions to 1.1.0, add @types/node for improved type definitions, and enhance ESLint configuration 2025-10-06 00:57:50 +03:00
Tudor Stanciu
b25c8d8f91 feat: enhance GeoIP data by integrating MaxMind GeoLite2-ASN database, update API responses and documentation 2025-10-06 00:42:27 +03:00
Tudor Stanciu
228807cfed feat: integrate @flare/utiliyo for path handling, optimize dependency management, and update project configuration 2025-10-05 23:51:18 +03:00
Tudor Stanciu
2021b5d651 feat: update branding with new favicon and logo, enhance visual identity in application 2025-10-05 20:40:54 +03:00
Tudor Stanciu
07412e620d feat: add external resource links in footer for easy access to documentation, repository, and client libraries 2025-10-05 17:09:52 +03:00
Tudor Stanciu
d24f8942dd fix: update file paths in path utilities to reflect new content directory structure 2025-10-05 16:23:22 +03:00
Tudor Stanciu
30171365b3 feat: add debug scripts for backend and frontend development 2025-10-05 16:12:39 +03:00
Tudor Stanciu
ee20b85c9e feat: create centralized path utilities for improved path resolution and environment awareness 2025-10-05 15:54:21 +03:00
Tudor Stanciu
dca221384c chore: bump version to 1.0.1 for backend and frontend
fix: update import statements to remove file extensions for consistency
fix: improve path handling in pathCombine utility function
fix: ensure trailing slash in Vite base path configuration
refactor: update build script to use tsup for backend
refactor: clean up package.json dependencies and devDependencies
2025-10-05 03:55:22 +03:00
Tudor Stanciu
feb3798283 fix: update import statements for healthCheckHandler to include file extension 2025-10-05 01:46:18 +03:00
Tudor Stanciu
bb19edd7e3 feat: add health check endpoint for Docker compatibility 2025-10-05 01:43:58 +03:00
Tudor Stanciu
3bbf5b5848 fix: correct export statement for LogLevel to include file extension 2025-10-05 00:26:44 +03:00
Tudor Stanciu
2287da53f4 fix: update import statement for LogLevel to include file extension 2025-10-05 00:25:12 +03:00
Tudor Stanciu
c546a3c1a0 refactor: add logging configuration with adjustable log levels and update related documentation 2025-10-05 00:20:20 +03:00
Tudor Stanciu
e3e77e3d98 refactor: add DEBOUNCE_MS to runtime configuration and update usage in Home component 2025-10-04 20:08:39 +03:00
Tudor Stanciu
91f667e4c3 refactor: update runtime configuration keys to uppercase and add type declarations 2025-10-04 19:55:38 +03:00
Tudor Stanciu
798025a971 refactor: fix import statement for config module in runtimeConfig service 2025-10-04 19:44:18 +03:00
Tudor Stanciu
1025d51d8c refactor: fix import statement for config module in runtimeConfig service 2025-10-04 19:43:01 +03:00
Tudor Stanciu
1316e9b151 refactor: update build script to correctly reference the dist directory 2025-10-04 19:38:05 +03:00
Tudor Stanciu
1d4fd809bf refactor: fix import statement for config module in runtimeConfig service 2025-10-04 18:57:29 +03:00
Tudor Stanciu
fcbea476a5 refactor: add FRONTEND_API_KEY to runtime config and update API key retrieval logic 2025-10-04 18:51:40 +03:00
Tudor Stanciu
64b13b3df0 refactor: disable Origin-Agent-Cluster header to avoid browser warnings 2025-10-04 18:40:37 +03:00
Tudor Stanciu
5059780048 refactor: improve graceful shutdown logic and logging 2025-10-04 18:08:01 +03:00
Tudor Stanciu
2d428af427 refactor: improve date formatting for version release info in footer 2025-10-04 04:02:09 +03:00
Tudor Stanciu
06a1b84f03 refactor: enhance frontend API key validation by checking same-origin requests 2025-10-04 03:49:15 +03:00
Tudor Stanciu
ae34658fba refactor: add early return for health check endpoint in API key authentication middleware 2025-10-04 03:35:22 +03:00
Tudor Stanciu
900f5ad238 refactor: reduce graceful shutdown timeout from 5 to 3 seconds 2025-10-04 03:25:32 +03:00
Tudor Stanciu
1d6eb6e5a6 refactor: add ENABLE_HTTPS_SECURITY environment variable and update security middleware to toggle headers based on its value 2025-10-04 03:24:15 +03:00
Tudor Stanciu
9dddf2fa29 refactor: disable Content Security Policy in security middleware to allow HTTP access 2025-10-04 03:11:01 +03:00
Tudor Stanciu
e309e4f71b refactor: update security middleware to disable COOP and CORP for HTTP access 2025-10-04 02:59:34 +03:00
Tudor Stanciu
0b3e37926a refactor: update healthcheck command to use wget and reduce shutdown timeout from 10 to 5 seconds 2025-10-04 02:57:09 +03:00
Tudor Stanciu
edb38f034e refactor: add comment to clarify HSTS configuration in security middleware 2025-10-04 02:49:57 +03:00
Tudor Stanciu
9566c4311d refactor: remove unused dependencies from root package.json and add dotenv to backend package.json 2025-10-04 02:38:07 +03:00
Tudor Stanciu
88f15392e7 refactor: update MaxMind database path from /usr/share/GeoIP to /usr/share/maxmind in configuration files and documentation 2025-10-04 01:00:13 +03:00
Tudor Stanciu
900a6e05a4 refactor: update default port from 3000 to 5172 across configuration files and documentation 2025-10-04 00:27:05 +03:00
Tudor Stanciu
f63ee472c8 refactor: update output directory paths in tsconfig and vite config for backend and frontend 2025-10-03 19:40:58 +03:00
Tudor Stanciu
345ed9c68c Merged PR 109: Bitip project initialization - GeoIP lookup service with frontend interface
- feat: Implement GeoIP lookup service with frontend interface
- feat: Add dotenv dependency and configure environment variables; update rate limiter response handling
- refactor: Remove development Dockerfile and docker-compose for streamlined setup; update GeoIP service to use new MaxMind types
- chore: update dependencies and ESLint configuration
- feat: Add documentation for breaking changes and package updates after major version upgrades
- feat: Add environment configuration files and update module imports for ES module support
- feat: Update nodemon configuration and add register script for ES module support
- feat: Add .gitattributes file to enforce LF line endings and define text/binary file types
- feat: Implement graceful shutdown with timeout and update nodemon configuration
- feat: Update environment configuration and add detailed configuration guide
- feat: add frontend origin validation and update rate limits
- feat: add versioning arguments and detailed OCI image labels to Dockerfile
- feat: add version and release notes endpoints, update frontend to display release notes
- feat: Refactor App component to use React Router for navigation
- feat: Update navigation styles and remove unused type definitions for react-router-dom
- feat: Generate runtime configuration for frontend and serve env.js
- feat: Update dependencies, enhance ESLint configuration, and improve Vite setup
- refactor: Remove ensureTrailingSlash function and simplify basePath assignment in Vite config
2025-10-02 22:59:22 +00:00