Skip to content

Front end for 'itrade-dongs' in ReactJS.

License

Notifications You must be signed in to change notification settings

lfsc09/itrade-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3512cd7 · May 23, 2024

History

61 Commits
May 23, 2024
Dec 15, 2022
May 21, 2024
May 21, 2024
May 21, 2024
Dec 15, 2022
May 23, 2024
Jun 20, 2022
May 23, 2024
May 21, 2024
May 21, 2024
May 21, 2024

Repository files navigation

Static Badge Static Badge Static Badge

Use package-lock.json when building since newer versions of the libraries, expecially MUI will break the code.

Code was written a couple of years ago, and was not updated since then.


Plugins

Essential plugins

SASS

To use .scss.

npm install sass

React Router DOM

Client routing.

npm install react-router-dom
npm install @reduxjs/toolkit react-redux

HTTP request.

npm install axios

JWT-TOKEN

For JWT Token decode.

npm install jwt-decode

MUI plugins

npm install @mui/material @emotion/react @emotion/styled
Para os componentes ainda em Testes
npm install @mui/lab

Material-UI (Icons)

npm install @mui/icons-material
npm install material-table
Caso não esteja ja usando MUI instalar o core
npm install @material-ui/core
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/>
<style>
    * {
        margin: 0;
        font-family: 'Roboto', sans-serif;
    }
</style>

Extra Plugins

Form validation.

npm install formik
npm install yup

Date-fns

Date formatting.

npm install date-fns

Animation plugin.

npm install framer-motion

Encryption/Decription libraries.

npm install cripto-js

Text editor interface.

Default build
npm install @ckeditor/ckeditor5-react @ckeditor/ckeditor5-build-classic

Top page progress bar.

npm install @badrap/bar-of-progress

For cloning objects in JS.

npm install lodash.clonedeep

For custom array sorting based on multiple and similar values.

npm install match-sorter

Chart plugin.

npm install recharts

Environment Variables

REACT_APP_BASE_URL: http://<url_to_api>

Deploy

docker compose up -d

If not using Docker

If using Apache, include this .htaccess in the project root, so React Routes can work.

<IfModule mod_rewrite.c>
    Options -Indexes

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.html$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule . itrade/index.html [L]
</IfModule>

About

Front end for 'itrade-dongs' in ReactJS.

https://itrade-dongs.com.br (Down)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages