Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #382

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Develop #382

wants to merge 16 commits into from

Conversation

QuinnNTonic
Copy link
Collaborator

No description provided.

wengf2086 and others added 16 commits July 1, 2023 12:43
…ignore

Removed package-lock.json from .gitignore
This PR adds a file environments.org.ts file to the .gitignore file.
This file will be referenced with the new way to execute the application
locally when someone is a part of the organization. We do this by adding
another configuration to the angular.json file for an "org" environment.
In addition, two new scripts were added to the package.json file to work
with this.
Updated readme to include steps on how to configure Firebase, launch
PostgreSQL in a container, and start both client and server.
These updates allow for us to use the npm run deploy:test to deploy both
the api and the ui to the test envrionment. I also updated the emailing
and other services to treat test like prod and allow for notifications
to be sent.

---------
Updates as suggested via codelyzer and depcheck to fix issue with npm
restore failing.

---------

Co-authored-by: Quinn Heffern <quinnheffern@quinns-mbp.mynetworksettings.com>
I added a pgpass and servers.json file to the .docker folder to be used
in the docker-compose.yml file. These allow us to setup the pgadmin
container to automatically add an "Involvemint Local" server with access
to the postgres container so that new engineers do not have to worry
about adding the server or authenticating with the local involvemin
database in order to view it from pgadmin.

Updated the init.sql scrip to successfully create the involvemin
database when first running the docker compose up command. The previous
script failed due to the "if not exists" part.

Updated the build process locally to use the local flag instead of the
org flag. This is more logical from an engineers perspective. It means
that the environment file will be environment.local.ts and the commands
to run the server and client are npm run start:server:local and npm run
start:client:local respectively.

I updated the readme to reflect the changes made in this branch.
Updated the docker compose to use 5433 as the locally accessible port in
order to not clash with any locally running postgres instances outside
of the docker container. We were running into issues where if someone
already has a local postgres server running, the application was
connecting to it instead of the docker container. This is fine as long
as the developer knows where to look, but for getting DFG running as
quick as possible this eliminates a bit of confusion.
Updates to use a default address when running locally instead of
depending on access to the geolocation api. The default address ensures
that the default latitude and longitude match the addresses.

Adds docker container that host the firebase emulator suite so that we
can run the application without using a gcp storage bucket.
Co-authored-by: Johnson Luong <jkl53@sfu.ca>
Co-authored-by: Johnson Luong <38903775+JohnsonL111@users.noreply.github.com>
Before:


![Image](https://github.com/involveMINT/iMPublic/assets/134336066/9eac3e5d-ab0d-4c4f-bad6-c2328939712f)


After:


![Image](https://github.com/involveMINT/iMPublic/assets/134336066/84735d14-e67a-4299-ac0f-12fe685badec)

This is identical to behaviour in the `im-image` component, just added
one additional CSS style to get the images to be contained within the
tile.

Also, the change in `init.sql` is a config issue and the new version
that I have here was provided by Quinn.

---------

Co-authored-by: b3nkang <134336066+BKtheInfamous@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants