This template creates a React application using create-react-app bundled with
react-admin, a frontend framework
for building admin applications running in the browser on top of REST/GraphQL APIs,
using ES6, React and Material Design
The following components are provided to allow further customization of react-admin:
- A custom
Logoutcomponent. Adds aMy Accountbutton to allow the currently logged in user to modify its profile. - A custom
theme - A JSON API data client. A data client compatible with JSON API Resources
- A JWT auth client. An authentication & authorization client compatible with JSON Web Tokens for managing and verifying user tokens
- A
downloadFilefunction. Useful to download any file from the browser. - A working
DateTimeInputcomponent.
The template provides an example resource, countries which references the countries resource defined in
the rails-api-template. Adding this resource exposes
the following further functionalities:
- A custom
ActionsWithExcelcomponent. Visible in the resource list page, allows exporting and importing of records to/from Excel files with theExportToExcelandImportFromExcelcomponents. - A custom
PrintToPdfcomponent. Request and download a PDF file from the API. - A custom
FlagFieldcomponent. Show an SVG flag based on ISO country code.
- Yarn
- create-react-app
In the directory you want the app to be created:
wget -O - https://raw.githubusercontent.com/matteolc/react-admin-template/master/template | bash
cd app
yarn start