Skip to content

Project & Env Selection #19

@whittlbc

Description

@whittlbc

We need to make it possible for users to configure/switch between their different project and database environments from the header of the desktop app.

Loom: https://www.loom.com/share/edf3ee14b8674408bc2d85b698a1f3e3?sid=e3417cf0-289f-498b-9bef-d105daa02d8c

2 different projects to switch between:

  1. test/test
  2. test/testing

Good info to know:

  • A user can have many projects
  • The source of truth for a project is the config folder (my-spec-app/.spec) with its 2 files (project.toml and connect.toml)
  • A project belongs to a particular customer namespace (allov2, station, ivy, etc.). In this sense a "namespace" is treated like an organization.
  • A project can have many database environments (listed off inside connect.toml)
  • A user's auth credentials are saved inside ~/.netrc
  • All projects that have been interacted with are listed inside of the global .spec folder (different from the local .spec folder of a project), within ~/.spec/projects.toml
  • The current project is listed inside of the global ~/.spec/state.toml
  • The desktop app files used to interface with a user's projects and the current DB environment are projectManager.js and projectEnv.js.
  • The CLI command that is used to switch between projects is spec use project nsp/project - Link
  • The CLI command that is used to switch between database environments is spec use env <local|prod|etc> - Link

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions