This is a base configuration to start with React projects.
Coming soon
$ git clone https://github.com/EverlookSoftware/react-boilerplate.git
Runs the app in development mode. Open http://localhost:8080 to view it in the browser.
Development mode comes with hot module reloading so the browser will automatically reload to changes with your code.
Any build errors will appear in the browser or console.
The project is linted through AirBnB. Test files are ignored.
Runs the tests for your application.
The Everlook Boilerplate utilizes Jest and Enzyme for unit and snapshot testing.
By default, it will look for any folder called __tests__
within the src/
directory.
Builds the application for production.
- Quick Start: Get started writing your React application as soon as possible without having to worry about build process woes.
- Just Enough: Enough build process built for you to get you started, but open enough for you to implement whatever else you want on top without fear of "ejecting".
- React, JSX, ES6 Support.
- Tailwind utility-first CSS framework.
- Live development server with HMR and error outputs.
- AirBnB JavaScript style linting.
- Autoprefixed CSS.
- Unit tests with coverage reports.
The config/
directory holds all the Webpack configuration files.
webpack.config.js
contains all the general Webpack settings and common plugins to use across dev and build pipelines.webpack.dev.js
contains development specific settings.webpack.prod.js
contains production specific settings.
The src/
directory contains all the source code for your application as well as any unit tests. Jest will scan for any directory called __tests__
for tests.
components/
base component folder.App.css
root CSS file.App.jsx
application root React component.index.js
application root.setupTests.js
file to setup testing environment and Enzyme.
Holds any static files for your application and the index.html
file the application uses.
This project assumes that you will be deploying your UI to s3 static hosting. If that's not the case, ignore this.
In order to deploy correctly, you must do a few things:
- Set up your circle-ci account and enter your AWS credentials into the platform for your repository.
- Change the dev and prod buckets inside of
scripts/deploy.sh
to point to your buckets. - If you have any custom .env variables, you can define them inside of
scripts/build.sh
. This file will generate a.env
file during CI/CD, and your production webpack config will parse it and feed it into your bundle during build time.