/engine

Primary LanguageJavaScriptMIT LicenseMIT

FlowBuild Engine

workflow manager for your project

semantic-release codecov npm github actions

Dependencies:

node v12.13.0 (lts)
npm v6.12.0

Development guidelines

NomeDeClasse
nomeDeMetodo
nomeDeFuncao
nome_de_variavel
nome_de_getter
nome_de_setter
Classe{
estáticos
construtor
getters que tem setters
getters sozinhos
setters sozinhos
metodos publicos
metodos privados
}

Run the project:

On Docker:

To run tests on docker, you may use the command below:

docker-compose run -T app ./scripts/run_tests.sh

To setup the docker environment, you may run docker-compose build followed by docker-compose up. Running docker-compose up will setup two containers (Application and Database Server) and run the migrations.

Once the commands above have been executed, you may run docker exec -it workflow_app /bin/bash to gain access to a bash inside the container of the Application. To run the tests, you may use the commands below.

To run tests with PostgreSQL database persistence:

npm run tests

To run tests with memory persistence:

npm run tests-memory

On your localhost:

Run the commands below to setup your environment and run the tests to verify that your environment was correctly built.

psql -f scripts/sql/create_database.sql
npm install
npm run migrations
npm run tests
npm run tests-memory

Running the examples:

First, install all the dependencies with npm install. The examples run with memory persistence option by default.

To run the examples from the root path of the project, you may run a command like the one below:

node examples/<example_name>.js

Contributing

Read CONTRIBUTING guide.