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

Feat: Persistent Storage with PostgreSQL #53

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

Conversation

Nfrederiksen
Copy link
Collaborator

@Nfrederiksen Nfrederiksen commented Sep 21, 2021

feature to add support for PSQL as persistent storage.

Overview of changes:

  • Removed unused files
  • Added migrations folder to set up psql databases and tables
  • Added 2 new docker-compose files. docker-compose-postgresql.yml for setting up containers for PSQL server and Adserver. docker-compose-testing.yml for setting up end-2-end API testing with a psql database as storage. Use it with:
    docker-compose -f docker-compose-testing.yml up --build --abort-on-container-exit
  • db-adapters now implement their own _Paginator()
  • Session got new functions... .toJSON() , .fromJSON(obj), & .toObject()
  • Added possibility for EventTracker class to initialize with pre-existing list. (needed for .fromJSON(obj))
  • All db-adapters shall return Session Class objects. Turning them into jsons occur later at the routes.
  • Added a storage.js that selects what db-adapter to use based on ENV

@Nfrederiksen Nfrederiksen requested a review from birme September 21, 2021 12:07
@birme
Copy link
Contributor

birme commented Oct 18, 2022

Whenever you have the time @Nfrederiksen could you go through the conflicts?

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.

2 participants