This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4624df4
commit 19a9544
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Transbank SDK client | ||
|
||
|
||
## ¿cómo usar? | ||
Descarga el ejecutable desde la [sección de releases](https://github.com/TransbankDevelopers/transbank-pos-sdk-web-client-nodejs/releases) y ejecutalo. | ||
Una vez iniciada la aplicación por primera vez, se configurará automáticamente para arrancar al iniciar el computador. | ||
|
||
## Desarrollo | ||
|
||
Se puede desarrollar con el comando `yarn start` que ejecutará la aplicación en modo desarrollo. | ||
```bash | ||
git clone https://github.com/TransbankDevelopers/transbank-pos-sdk-web-client-nodejs | ||
cd transbank-pos-sdk-web-client-nodejs | ||
yarn install | ||
yarn start | ||
``` | ||
|
||
|
||
### Package | ||
Para generar un executable, se utiliza electron-forge. | ||
|
||
#### Mac | ||
```bash | ||
git clone https://github.com/TransbankDevelopers/transbank-pos-sdk-web-client-nodejs | ||
cd transbank-pos-sdk-web-client-nodejs | ||
yarn install | ||
yarn package | ||
``` | ||
|
||
#### Windows | ||
Para que se pueda compilar correctamente, hay que realizar el proceso en windows. | ||
|
||
Requisitos: | ||
|
||
1. Instalar Node.js | ||
2. Instalar yarn | ||
Instalar Visual Studio 2019 con la opción "Desktop development with C++" habilitada, como se comenta acá: https://github.com/nodejs/node-gyp | ||
|
||
Compilación: | ||
|
||
1. Descargar el repositorio | ||
2. Instalar dependencias `yarn install` | ||
3. Recompilar binarios nativos con `./node_modules/.bin/electron-rebuild` | ||
4. `yarn package` |