Skip to content

Deploy the backend and frontend #69

Open

Description

@selvarajuv

Blocked by: #67

Problem

Foresight only runs on developers' machines. The hotel's manager needs a stable address to use it, and the scheduled refreshes need a running API to call.

Goal

The backend and frontend run in production on our domain over HTTPS, and any merge to main can be deployed and rolled back.

Scope

  • Choose hosting for the backend and the frontend.
  • A production database on its own Neon branch; migrations run on every deploy before the new version starts.
  • Domain and HTTPS for both.
  • Production secrets (database URL, PredictHQ token, etc.) stored in the host, never in the repo.
  • Deploy from main (automatically or with one command) and a way to roll back.
  • A README section on how to deploy and roll back.

Considerations

  • The API runs background jobs in its own process and a restart kills running jobs, so the backend needs a single long-running instance: no scale-to-zero and no multiple workers.
  • Cost: pick something the team can keep running for the whole pilot.
  • Production holds real revenue data; it must not be usable without login once auth exists.

Acceptance criteria

  • GET /health on the production URL returns 200 over HTTPS.
  • The production frontend loads and calls the production API.
  • Following the README, a merge to main can be deployed and the previous version restored.
  • No secrets in the repo.

Activity

  1. added
    featureIntroduces a new and complete feature
    plumbingPlumbing and integration: CORS, settings, deploy, scheduler, CI, tests, frontend-API wiring
    on Oct 21, 2026
  2. changed the title [-]Rates refresh by themselves and show when they were last updated[/-] [+]Deploy the backend and frontend[/+] on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIntroduces a new and complete featureplumbingPlumbing and integration: CORS, settings, deploy, scheduler, CI, tests, frontend-API wiring

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions