Skip to content

Conversation

r4mmer
Copy link
Member

@r4mmer r4mmer commented Apr 10, 2025

Motivation

During development we need a local database environment for testing and developing new features.
This is the most simple environment and an example of the environment configs used for development.

The core idea is that by running the compose file under dev we will have:

  • a simple redis server running on port 6379
  • a mysql database running on port 3306
  • a phpMyAdmin connected to the database running on port 8001

The command make dev-migrate should connect to the database and run the migration to the latest version.
To run a test suite for the daemon you can use the following:

nix develop .
source dev/envrc
yarn workspace sync-daemon run test

// or
nix develop . -c bash -c "source dev/envrc && yarn workspace sync-daemon run test"

This way we don't need to have untracked files with no version control on the staging area during development.

Acceptance Criteria

  • Create some utilities for developers

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@r4mmer r4mmer self-assigned this Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant