Skip to content

Make stub server available in scala js #4642

@virtual-architect

Description

@virtual-architect

I would like to be able to mock the backend when doing frontend work with Laminar.

I wonder if it is possible to make endpoints run either in frontend via sttp, or maybe as a vite module somehow, to make a superfast development cycle.

This could also be used for caching, I.e. creating a router layer in the frontend deciding to fetch fresh data or read from the browser db etc.

The stubbed tapir server seems perfect for this, but not sure if we also then need to implement more than the stub provides today, like http parser etc.

Metadata

Metadata

Assignees

No one assigned

    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