This is an automation script for Portraits project. Developed with Node and Simple Git.
This script watches for changes in a specified directory. When a change is detected, it creates a new object and inserts it into the FILE_TOBE_READ
file. Using Simple Git, it automatically commits and pushes the changes to the remote repository.
-
Clone repo:
git clone https://github.com/viniciusbavosa/portraits-node-script
-
Install dependencies with pnpm
pnpm install
-
Set environment variables
- Use .env-example in the repository root as an example
- Create a .env file with the environment variables from .env-example
-
Start application with pnpm ->
pnpm run watch
This repository is licensed under the MIT License. Be sure to read and agree to the license terms before using its content.
Thanks to João Genari for his help during the development of this project and for providing the template for this README.