@tarsislimadev/myadmin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tarsis Lima
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # MyAdmin
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
4
+ [![Docker](https://img.shields.io/badge/Docker-2496ED?style=flat&logo=docker&logoColor=white)](https://www.docker.com/)
5
+
6
+ **MyAdmin** is a lightweight, Dockerized development environment inspired by **XAMPP**. It provides a ready-to-use **MySQL 8** instance with the popular **phpMyAdmin** interface for easy graphical database management.
7
+
8
+ Perfect for developers who need a quick, isolated database backend without the bloat of a full server suite.
9
+
10
+ ---
11
+
12
+ ## 🚀 Features
13
+
14
+ - **🛡️ MySQL 8 (Debian-based)**: Reliable and performant database engine.
15
+ - **🖥️ phpMyAdmin**: The industry-standard web interface for MySQL administration.
16
+ - **⚡ One-Command Setup**: Get up and running in seconds using Docker Compose.
17
+ - **🔄 Local Persistence**: Database data is persisted across restarts via Docker volumes.
18
+
19
+ ---
20
+
21
+ ## 🛠️ Getting Started
22
+
23
+ ### Prerequisites
24
+
25
+ - [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed on your machine.
26
+ - [Docker Compose](https://docs.docker.com/compose/install/) (included with Docker Desktop).
27
+
28
+ ### (Option 1) Installation & Run
29
+
30
+ 1. **Clone this repository**:
31
+ ```bash
32
+ git clone https://github.com/tarsislimadev/xampp.git
33
+ cd xampp
34
+ ```
35
+
36
+ 2. **Start the services**:
37
+ ```bash
38
+ docker compose up -d
39
+ ```
40
+
41
+ ### (Option 2) Run
42
+
43
+ **Run with NPX**
44
+
45
+ ```bash
46
+ npx myadmin
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 🔗 Accessing Services
52
+
53
+ Once the containers are running, you can access the services using the details below:
54
+
55
+ | Service | Address | Local Port |
56
+ | :--- | :--- | :--- |
57
+ | **phpMyAdmin** | [http://localhost:8080](http://localhost:8080) | `8080` |
58
+ | **MySQL Server** | `localhost` | `3306` |
59
+
60
+ ### 🔐 Default Credentials
61
+
62
+ | Field | Value |
63
+ | :--- | :--- |
64
+ | **PMA_USER** | `root` |
65
+ | **PMA_PASSWORD** | `mysql` |
66
+ | **MySQL Root Password** | `mysql` |
67
+
68
+ ---
69
+
70
+ ## ⚙️ Configuration
71
+
72
+ To modify the default settings (like passwords or ports), simply edit the `docker-compose.yaml` file:
73
+
74
+ ```yaml
75
+ # Example: Changing the MySQL Root Password
76
+ environment:
77
+ - 'MYSQL_ROOT_PASSWORD=your_secure_password'
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 📄 License
83
+
84
+ This project is open-source and available under the [MIT License](./LICENSE).
@@ -0,0 +1,25 @@
1
+ services:
2
+
3
+ mysql:
4
+ image: 'mysql:8-debian'
5
+ ports:
6
+ - '3306:3306'
7
+ environment:
8
+ - 'MYSQL_ROOT_PASSWORD=mysql'
9
+ volumes:
10
+ - 'mysql_data:/var/lib/mysql'
11
+
12
+ phpmyadmin:
13
+ image: 'phpmyadmin/phpmyadmin'
14
+ ports:
15
+ - '8080:80'
16
+ environment:
17
+ - 'PMA_HOST=mysql'
18
+ - 'PMA_PORT=3306'
19
+ - 'PMA_USER=root'
20
+ - 'PMA_PASSWORD=mysql'
21
+ depends_on:
22
+ - 'mysql'
23
+
24
+ volumes:
25
+ mysql_data:
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ console.log('MyAdmin')
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@tarsislimadev/myadmin",
3
+ "version": "0.1.0",
4
+ "description": "Manage MySQL and MariaDB databases easily",
5
+ "main": "index.js",
6
+ "bin": "./index.js",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/tarsislimadev/myadmin.git"
10
+ },
11
+ "license": "MIT",
12
+ "type": "commonjs",
13
+ "bugs": {
14
+ "url": "https://github.com/tarsislimadev/myadmin/issues"
15
+ },
16
+ "homepage": "https://github.com/tarsislimadev/myadmin#readme"
17
+ }