A spring microservice that can store and retrieve information on ips using IP2C.
Using the latest version of docker and docker compose run:
docker-compose up -d
to setup a docker container with Postgres 12.
To create the tables and seed the database:
cd src/main/resources/init_scripts/1.0
psql -U postgres -d ip2cspring -h 0.0.0.0 # password is 'postgres'
From within the Postgres CLI run:
\i 1.0.sql
To run the application run:
./mvnw spring-boot:run
The application should now have connected to postgres by default.
To query information for an ip, for example 46.255.255.254, run:
curl http://localhost:9090/api/info/46.255.255.254
- Framework: Spring v3
- Database: PostgreSQL 12
- JPA (entity framework): Hibernate
- Scheduling: Quartz
- Cache: Hazelcast
- Build System: maven
- Java: Java18