Woovi API's functionalities applyed to typescript ES scripts.
To install the project, first clone its repository into your local machine.
git clone https://github.com/igorfelipeduca/woovi-playground
When it is done, start installing the dependencies using Yarn.
yarn install
And then run the command cd woovi-playground
to enter the project's folder
To install the repository using NPM, you may clone the project the same way as it is done at the example above. Once the project is in your local machine, install the project dependencies using Npm CLI.
npm install
To configure the project, you need to create an account at Woovi.
Once your account is created, head to the API/Plugins page.
Click in the "New Api/Plugin" button and select the Plugin option. Give the plugin a name and then proceed with the creation.
Select the created Plugin and copy its AppID and Client ID. Once they are copied, run the following command in your terminal
cp .env.example .env
copy .env.example .env
After running the command, you may see that a file called .env
is now created.
Enter inside of the .env
file and replace its variables to your Woovi Plugin credentials.
Once your project is cloned and all of the dependencies are installed, you can run an specific script using this following command:
yarn es src/scripts/{file}.ts
npm run src/scripts/{file}.ts