JeanCarlosChavarriaHughes / API_Hacienda

API de comunicacion con hacienda
https://crlibre.org/qa/
GNU Affero General Public License v3.0
1 stars 1 forks source link

Feature/update docker 3.5 #61

Closed JeanCarlosChavarriaHughes closed 1 year ago

JeanCarlosChavarriaHughes commented 1 year ago

Confirmed testing:

  1. Installed API_Hacienda in a clean Debian 11.

  2. installed docker engine

  3. update docker-compose.yml with real MySQL Settings.

    • CRLIBRE_API_HACIENDA_DB_HOST
    • CRLIBRE_API_HACIENDA_DB_NAME
    • CRLIBRE_API_HACIENDA_DB_USER
    • CRLIBRE_API_HACIENDA_DB_PASSWORD
    • MYSQL_USER
    • MYSQL_PASSWORD
    • MYSQL_DATABASE
  4. Start docker-compose service by following docker-compose.md

  5. Confirm with Curl. (Make sure the DB is real and initialized. SQL Init at: recursos/sql/api_base.sql) Hello

    $ curl --location 'http://localhost:8080/api.php?w=ejemplo&r=hola'
    {"resp":"hola :)"}

    UserCreate

    curl --location 'http://ip-address:8080/api.php?w=users&r=users_register&fullName=WilbertVJ&userName=test500011111&email=example%40gmail.com&about=Staging%20-%20Sopa%20-&country=CR&pwd=pass500011111' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'User-Agent: Linux Terminal'