1.0.1 • Published 1 year ago

snk-react-web v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

snk-react-web

This tool aims to create a React Web environment with build and development support for the Sankhya ERP Dashboard Builder.

This application is not linked to the company Sankhya Gestão de Negócios.

🐱‍👤 Github: https://github.com/williamciva/snk-react-web

🤯 Introduction

From this documentation it will be possible to create a new snk-react-web project, create the first component and build it. You can run it in production or development.

📋 Prerequisites

To carry out the project, you will need to have the following tools installed on your machine:

🚀 Get Starting

Create a folder to allocate your project, after, run npx command.

npx snk-react-web

Press enter when the message "Ok to proceed? (y)”

Here you can see some of the commands available through the library.

Now run the necessary commands to create a new snk-react-web project.

npx snk-react-web --create nameOfProject

Look how easy it is, the project has already been created, and now we can access some scripts that were added for us in package.json. For that run:

npm run help

The main scripts needed for your project will be shown.

💻 Create new Dashboard

Well, let's create a new dashboard by running the command:

npm run add:dashboard nameOfDashboard

A folder will be created with the name you chose for your dashboard, located in the path "./src/dashboards/nameOfDashboard”. In this folder there will be an HTML file, with CSS and a TSX where you can program your dash as needed.

Attention: When creating a new project or a new dashboard, make sure that the name does not have special characters.

🏃🏻‍♂️ Running

🏳 Development

In the development environment, run the command followed by the name of your dashboard.

npm start:dev nameOfDashboard

The project is running under port 3000, in case of problems, just pass the argument for changing the port followed by the port number, as in the example below:

npm start:dev nameOfDashboard -- --port 5000

🔥 Production

In production mode, a folder will be generated with the files used and a zip that can be imported into ERP Sankhya through the HTML5 component. For that run:

npm run build:sankhya nameOfDashboard

A folder with the path "./build/NameOfDashboard" will be added.

🎇 Final considerations.

This library makes an intermediary between the code executed with React making build and executions that facilitate the development of dashboard in ERP Sankhya. However, it is good to note that this project does NOT have connections with the company that developed the ERP, being a project maintained only by open source. Any and all bugs or suggestions found can be directed to the Issues section of github.

⚙ Tools Used

Production

Development

💪🏻 Contributions

📃 Licença

1.0.1

1 year ago

1.0.0

1 year ago