Skip to content

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

License

Notifications You must be signed in to change notification settings

joshgav/spring-apiserver

Repository files navigation

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
  • 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published