This app is an example of integration react-boilerplate with react-admin. To achieve this result, the following was done:
- Implemented Admin page with using components from react-admin library.
- Created AuthProvider which includes login, logout, checkError, checkAuth, getPermissions functionality.
- Connected pouchDB for storing user data.
- Created DataProvider which includes getOne and getList methods for working with pouchDB.
- Implemented user profile editing.
- Make sure you have Node.js v8.15.1 and npm v5 or above installed.
- Run
npm install -g pouchdb-server
to install pouchdb-server on your local machine. - Run
pouchdb-server --port 5984
to launch pouchdb-server. You can check the database connection by the following link:http://127.0.0.1:5984/_utils/
. - Run
npm i
in order to install app dependencies. - Run
npm start
to start app athttp://localhost:3000
. - You can run
npm test
to execute tests.