This project is an application setup for a typical React web app.
Introduction
The project is configured using Webpack and Babel and it also has a test configuration, running tests using Jest with enzyme.
It follows the eslint-config-fortech-react
ESLint config standard for modern JavaScript and React.
The complete tools/modules used in this project are listed in package.json.
Getting Started
To get started you can simply clone the repository and install the dependencies:
Clone the repository
Clone the repo repository using [git]:
git clone https://github.com/FortechRomania/react-starter-kit
Install project dependencies
npm install
Run the server
npm run dev
The application is running now, so open a browser and navigate to localhost:8080
You should see a message displayed on the screen, letting you know that it works.
Running tests
Alternatively, if you want to run tests with jest, just write this command in the terminal:
npm run test
Project Structure
The project has three main folders:
- src - containing the main folders and files (js, css etc.)
- tests - contains the test files
- test-config - contains the setup needed for running tests with enzyme