Everytime I created a React app, the first thing I did was setup the project by adding all the routes and pages, so that development and collaboration becomes easier, and it was a repetitive process. So I decided to simplify it.
React starter files is a command line utility that allows you to initialize your react app with your preferred components before you begin development.
The utility is available as a npm package available here.
npm install -g rsf-cli
rsf <command> [--options]
Initialize your already created react app with pages and components.
rsf init
Add firebase integration to an app created using rsf init
.
rsf firebase-init
Run create-react-app as well as rsf init in a single command
rsf create-react-app myapp
Get help for all your commands :)
rsf help
Check the current version for your rsf-cli!
rsf version
Language: Javascript Tools Needed: (NodeJS)[https://nodejs.org/en/], (Yarn package manager)[https://yarnpkg.com/]
- Clone the repository locally using.
- Run
yarn install
locally to install the dependencies. - After that run
npm install -g
from the root of the repository to activate the cli in your environment - Run
rsf
to view the different options available
$ yarn install
$ npm install -g
$ rsf
If you know NodeJs and the basics of how react works, you should be good to go!
Avinash V K - [email protected]