rrcampbell-exe / mern-maker

An application that generates full stack MERN project templates based on user input.
1 stars 0 forks source link

Introduce FE-Only Option #4

Closed rrcampbell-exe closed 2 years ago

rrcampbell-exe commented 2 years ago

Currently, users are only able to create full MERN stack projects.

As a user, I want to be able to choose be presented with the following options when running npm start or node index.

  1. What is your project's name?
  2. Is [project name] a front-end only project (no server or database required)?
    • If YES, create only a React FE project
    • If NO, proceed to next question
  3. Does [project name] require a database?
    • If YES, create a server and a database
    • if NO, proceed to next question
  4. Does [project name] require a server?
    • If YES, create an Express server
    • If NO, inform user that it appears they only need a FE, ask if this sounds correct
      • If YES, create only a React FE project
      • If NO, return to question 2 and proceed through questions again from there
rrcampbell-exe commented 2 years ago

Instead of asking a yes or no question multiple times, users could be forced to choose one of the available options using checkbox or list instead of confirm from Inquirer.

There are ultimately three options provided, after all (FE, FE + Server, FE + Server + DB), and asking users which they'd prefer presents the need for logic to push users back to question 2 as suggested above.

Furthermore, in order to embrace a more iterative development process, this issue should be broken into multiple issues, with each option (FE only and FE + Server) having their own issue created.

rrcampbell-exe commented 2 years ago

Functionality has now been built in to create front-end only projects. The work that still remains on this issue includes using checkbox or list instead of confirm from Inquirer. See comment above for additional details.

rrcampbell-exe commented 2 years ago

This is now closed with today's merge.