Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

32 lines (28 loc) · 1.32 KB

React Template

This is a template, for new React Projects @ Acto. More specifically, it is designed to be a gradle submodule (it is however not a requirement). Pages for our standard Fafnir login flow are included.

Included in the template

  • React
  • React-Router
  • Material UI v5
  • Acto Ajax
  • A series of often-used components and hooks
  • Formik + Yup, for non rage inducing form handling
  • React Query
  • Webpack v5 setup, which allows HMR and code-splitting using dynamic imports
  • Cypress testing suite
  • Eslint, with the StandardJS styleguide
  • Nginx config, including a dummy reverse-proxy for your API
  • Dockerfile, for building your webserver, containing your react build

Prerequisites

  • Node >= v15
  • Yarn
  • Chrome browser
  • Docker

Usage

  1. Clone the repo, and copy the contents to your desired location
  2. Edit the config/settings.js file, to match your projects requirements and needs
  3. Run yarn
  4. Start working
This template will be updated continuously, as tools are updated and best practices change.