Skip to content

BudgetControl/microservice-template

Repository files navigation

BudgetControl Ms template

This repository contains the code of microservice budgetcontrol template.

Prerequisites

Getting Started

  1. Clone this repository:

    git clone https://github.com/your-repository
  2. Build and run the Docker containers:

    task build:dev
  3. Open your browser and visit http://localhost:8084 to access the BudgetControl application.

Task Commands

  • task build:dev: Install and build dev application.
  • task build: Install and build base application.

Test with FTP

You can use an fake ftp docker server

  • docker run --rm -d --name ftpd_server -p 21:21 -p 30000-30009:30000-30009 -e FTP_USER_NAME=user -e FTP_USER_PASS=12345 -e FTP_USER_HOME=/home/user stilliard/pure-ftpd
  • docker network connect [network_name] ftpd_server

Build dev enviroment

  • docker-compose -f docker-compose.yml -f -f docker-compose.db.yml up -d
  • docker container cp bin/apache/default.conf budgetcontrol-ms-authentication:/etc/apache2/sites-available/budgetcontrol.cloud.conf
  • docker container exec budgetcontrol-ms-authentication service apache2 restart

Test with mailhog service

You can use an fake mailhog server

  • docker run --rm -d --name mailhog -p 8025:8025 -p 1025:1025 mailhog/mailhog
  • docker network connect [network_name] mailhog

Run PHP Tests

  • docker exec budgetcontrol-ms-authentication bash -c "vendor/bin/phinx rollback -t 0 && vendor/bin/phinx migrate && vendor/bin/phinx seed:run"
  • docker exec budgetcontrol-ms-authentication vendor/bin/phpunit test

Contributing

Contributions are welcome! Please read our Contribution Guidelines for more information.

License

This project is licensed under the MIT License.

Debug

{
    // Usare IntelliSense per informazioni sui possibili attributi.
    // Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti.
    // Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Remote Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003,
            "pathMappings": {
                "/var/www/workdir": "${workspaceRoot}",
            },
            "log": true, 
        },
    ]
}

About

Budget control template for microservice infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages