Skip to content

feat(pop new): scaffold UI templates #663

@AlexD10S

Description

@AlexD10S

Add an optional --with-frontend flag to pop new contract|chain to scaffold a front-end in the same workspace under a frontend folder.

Phase 1

Support a curated set of community templates, some examples:

Contracts:

Chain:

With the command:

pop new contract|chain <name> --with-frontend[=<provider>]  # If provider omitted, open an interactive picker.

Pop CLI will pull the frontend templates as we do for chain and contract templates and include it into a frontend folder.

Run the frontend template

pop up frontend

Pop CLI will detect required tooling. If something’s missing, it prompts to install:
Eg. for inkathon template: https://github.com/scio-labs/inkathon/blob/main/README.md#quickstart It will check Node and bun are installed and if so will run: cd frontend && bun run dev

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthigh priorityThis issue is a high priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions