DEV Community

Mark Landeryou
Mark Landeryou

Posted on

How is create-react-app created

I am looking to create a template for building a frontend system that you could type for example npx create-frontend-site then you are asked questions than then based on the answers provided it will configure and download the required packages etc. I am wanting to know how to do this. Thank you for any assistance provided

Top comments (4)

Collapse
 
mohasaket profile image
Moha Saket

step 1:first install NodeJS if you didn't install yet
step2 : to create a project, run:
npx create-react-app my-app
cd my-app
npm start
here in this page is good example
reactjs.org/docs/create-a-new-reac...

Collapse
 
codeakash profile image
Akash

Develop a Node.js-based CLI tool using Commander.js for command handling, Inquirer.js for interactive prompts, and programmatically manage file templating and dependency installations based on user input, then publish the package on npm for execution via npx.

Collapse
 
johnodhiambo profile image
JohnOdhiambo

Check my post for various ways you can achieve that.

Collapse
 
aniruddhadak profile image
ANIRUDDHA

Amazing .