Skip to content

Project Structure and File Locations #884

Description

@scheidtdav
frontend
├── .github
├── app/
│ ├── components/ reusable UI components like buttons, alerts, etc.
│ ├── emails/ email templates
│ ├── routes/ pages and layouts making up the application using the components
│ | ├── api/ api routes
│ | ├── device/ /device routes
│ | ├── ...
│ ├── lib/ shared utility / 3rd party code that "does stuff"™️
│ ├── services/ domain-specific stuff, business logic like a measurement service
│ ├── models/ mostly plain types, interfaces, classes, schemas (not database)
│ ├── db/ app-related database specifics
│ | ├── drizzle/
│ | | ├── meta/
│ | | ├── 0000_xyz.sql
│ └── index.js.map
├── scripts
│ ├── db/ database utility scripts (e.g. seed)
│ | ├── migrate.ts
│ | ├── seed.ts
│ | ├── ...
├── tests/ follows the structure of app/ for tests of corresponding file(s)
│ ├── components
│ ├── routes
│ | ├── api
│ | ├── ...
│ ├── lib
│ ├── ...
└── ...
  • we remove mocks for now
  • Dockerfile go to the root, other folder will be deleted (people expect to do docker compose up -d from the root)
  • public probably needs a clean up
  • types/ would be removed and corresponding files either go to models/ or will be colocated with the code using it

Originally posted by @scheidtdav in #693 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions