Add explicit --api or --view=json option

Open
#227 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
express, javascript, nodejs
Domain
cli, web-dev

Research direction

Start by locating the generator's handling of the --no-view flag and the command-line option definitions. Compare the generated public folder behavior for view and API applications, then define the new option's expected output and add coverage for it if the repository has related tests.

Written by the indexing model from the issue text.

Description

Currently when the app is generated with --no-view flag, public folder with nested folders is created.
I propose to have additional option for creating APIs, to eliminate the need to remove these folders later.
What are your thoughts regarding this?

Dominant language
JavaScript
Stars
1.9k
Forks
548
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from expressjs/generator

All issues in expressjs/generator

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.