The project is for automation, allowing you to run various projects in localy containers. You can configure any APIs and databases using shell scripts that run within the containers.
-
📂 Applications - each application should have a folder and contain its own separate informations
-
📂 Databases - database scripts for create tables and insert
-
📂 Scripts - applications scripts shell to configure database and APis in container, called docker-compose file
-
🐋 Docker-compose - to configure services, containers and ports of database
To configure the database in a local environment, follow these steps. Note that for each project script you run, you must grant permission using chmod.
- Before running the project, configure access permission for this script. Enter the command in terminal (WSL, PowerShell, CMD, etc)
chmod +x scripts/run.shTo start all containers and set up the environment:
./scripts/run.sh -upThis command will:
- Start all Docker containers defined in the docker-compose.yml
- Execute database setup scripts
- Configure APIs and services
To stop all containers and clean up the environment:
./scripts/run.sh -dThis command will:
- Stop all running containers
- Remove containers and associated resources
- Clean up the environment
For generate users data
chmod +x data-generator.sh- To generate users data
./data-generator.shFor test you connection database in DBaver following this steps:
- Server Host: localhost
- Port: 3307 (the door mapped in your docker-compose.yml)
- Username: root (the door mapped in your docker-compose.yml)
- Password: root (the door mapped in your docker-compose.yml)
