joshgav / spring-apiserver

A basic Spring+Postgres API server for tests and experiments.

Repository from Github https://github.comjoshgav/spring-apiserverRepository from Github https://github.comjoshgav/spring-apiserver

apiserver

A basic Spring Web API server over a PostgresQL DB for tests and experiments.

  • to build and test: ./gradlew build

Init a database

  • install postgres (e.g. brew install postgres, apt install postgresql)
  • add yourself to postgres group: sudo usermod -aG postgres ${USER}
    • logout and back in
  • run ./deploy/run-local-db.sh
    • check logs for errors and fix them
    • you may need to chmod -R 0775 /var/run/postgresql to enable access to the file lock
  • set password in src/main/resources/application.yaml to match password in ./temp/pgsql/pwfile
  • run ./gradlew bootRun

About

A basic Spring+Postgres API server for tests and experiments.

License:MIT License


Languages

Language:Java 46.3%Language:Shell 40.9%Language:Groovy 11.6%Language:Dockerfile 1.1%