A basic frontend React App to start new projects.
Download the repository directory:
git clone [email protected]:emilianoarlettaz/reactskeletor.git
cd reactskeletor
Set the required NodeJS version:
nvm install
This assumes you have NVM installed on your computer, if not, you can install it from here.
Install the repository hooks:
npm run install-hooks
This will ensure the code is validated before committing changes and that the dependencies will be updated if you do
git pull
and there are new dependencies.
Install the project dependencies:
npm install
You should always run
nvm install
before doingnpm install
orgit pull
as the dependencies MUST be installed with the version of NodeJS required by this project.
To start the project with the default configuration on your local environment run the following command:
npm start
Now, you can open the browser and visit https://localhost:8080/
npm run test:unit
You should also see a coverage report after test running.
npm run test:snapshot
This project runs ESLint and executes all unit, integration and snapshot tests every time you want to commit changes. For this you should install the hooks (see installation guide).
If you want to run manually the Linter execute the following command:
npm run lint:js:full
This project follows Airbnb JavaScript Style