Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

#112-Postgis-setup #119

Merged
merged 2 commits into from
Mar 14, 2022
Merged

#112-Postgis-setup #119

merged 2 commits into from
Mar 14, 2022

Conversation

MartinJurcoGlina
Copy link
Collaborator

Description

  • added setup and docs for Postgis DB and PgAdmin UI

Motivation and Context

  • moving from MongoDB to PostgreSQL with Gis plugins which is widely used in map apps

How has this been tested?

  • locally running app using provided scripts
  • copy new variables from .env_example to your .env also in minikube folder
  • first try running app using start.sh script which will run current version with MongoDB
  • run app using start_postgis.sh which will run app with Postgis and PgAdmin DB UI, app won't work as services aren't refactored for Postgres yet, but containers will be running
  • you can open PgAdmin UI by running pgadmin.sh and then log in using development credentials from .env_example
  • in PgAdmin expand servers on the left and under it there should be 'oscar' database and default 'postgres' database

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that there aren't other open Pull Requests for the same update/change.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@MartinJurcoGlina MartinJurcoGlina changed the title #112- #112-Postgis-setup Mar 8, 2022
@@ -166,6 +166,8 @@ Schema of endpoints can be found in [apiSchema.yml](../api/src/openapi/apiSchema

## Database

Database used in local development is determined by running either `start.sh` script for running evironment with MongoDB or `start_postgis.sh` for running with Postgis.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*environment

@bariela bariela merged commit 446f2eb into main Mar 14, 2022
@bariela bariela deleted the 112-postgres-container-setup branch March 14, 2022 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants