This app is created in React and the propose is connect with my-user-manager api and list the info from users in a view.
- Summary of set up
- Run
npm install
- Set up the environments variables.
- Run
β
In the package.json
you will see these scripts:
β
{
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build"
}
}
start
: Runs the app in the development mode. βbuild
: Create a production build.
Variables | Usage |
---|---|
REACT_APP_USERS_API(*) | https://my-user-manager.herokuapp.com/users, URL of api to fetch users. |
(*) = required variable.
- @material-ui/core: Styles.
- @material-ui/icons: Styles.
- axios: Promise based HTTP client.
- react: Front End library.
- react-dom: Rendering the components in the DOM.
- react-scripts: Read scripts.
ββ public/ #Project render browser
|
ββ src/
β ββ components/ # Components
β β ββ fetchUsers/ # β¦that consume api to render users data
β β ββ navbar/ # β¦that appear on all the app
β β ββ utils/ # β¦that has a view to show errors
| |
β ββ App.js/ # Render the components
| |
β |β index.css/ # Global file to styles
| |
β |β index.js/ # Entry point of the app
β
ββ .gitignore # List of files and folders not tracked by Git
ββ .env.example # Example .env file
ββ package.json # Project manifest
ββ README.md # This file