diff --git a/README.md b/README.md index 049b84c..0ce3263 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,34 @@ the items from APIs by importing the module `react-admin-loopback4-adapted` and the `lb4Provider` that takes as a @param the url to the backend server `http://localhost:3001`: ```ruby const dataProvider = lb4Provider('http://localhost:3001'); +``` +**This is the content of app.js** + +```ruby +import * as React from 'react'; +import { Admin, Resource } from 'react-admin' +import PostIcon from '@material-ui/icons/Book' +import './App.css'; + +import Dashboard from './dashboard' +import { ProductList, ProductCreate, Productedit } from './productlist' +import { Userlist, Useredit, Usercreate } from './user' + +import lb4Provider from 'react-admin-loopback4-adapted' + +const dataProvider = lb4Provider('http://localhost:3001'); + +const App = () => ( + + + + +) +export default App; + + ``` **note** In this sample the authentication is not integrated we will complete it in the next tutorial @@ -138,6 +166,8 @@ const dataProvider = lb4Provider('http://localhost:3001'); Site : https://planetconectus.com E-mail : mohamedali.chaabani@planetconectus.com + +Phone : 00216 26 410 947 Phone : +33 970 440 431 ````