news-manager-web-app
所属分类:PHP编程
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2023-11-17 20:01:14
上 传 者:
sh-1993
说明: 简单的普通PHP、JS、HTML和CSS新闻管理实现MVC模式的web应用程序。享受吧!
(Simple vanilla PHP, JS, HTML and CSS news managing web application implementing MVC pattern. Enjoy!)
文件列表:
Dockerfile (199, 2023-11-17)
LICENSE (1070, 2023-11-17)
app/ (0, 2023-11-17)
app/composer.json (496, 2023-11-17)
app/composer.lock (599, 2023-11-17)
app/config/ (0, 2023-11-17)
app/config/db_schema.php (936, 2023-11-17)
app/config/params.ini (111, 2023-11-17)
app/config/routing.php (1038, 2023-11-17)
app/config/services.php (504, 2023-11-17)
app/public/ (0, 2023-11-17)
app/public/icon/ (0, 2023-11-17)
app/public/icon/arrow.svg (428, 2023-11-17)
app/public/icon/close.svg (527, 2023-11-17)
app/public/icon/logo.svg (607, 2023-11-17)
app/public/icon/pencil.svg (863, 2023-11-17)
app/public/icon/waves.svg (173025, 2023-11-17)
app/public/index.php (465, 2023-11-17)
app/public/script/ (0, 2023-11-17)
app/public/script/home.js (2395, 2023-11-17)
app/public/style/ (0, 2023-11-17)
app/public/style/app.css (1125, 2023-11-17)
app/public/style/home.css (1157, 2023-11-17)
app/src/ (0, 2023-11-17)
app/src/Container.php (1827, 2023-11-17)
app/src/Controller/ (0, 2023-11-17)
app/src/Controller/LoginController.php (1559, 2023-11-17)
app/src/Controller/NewsController.php (3489, 2023-11-17)
app/src/DatabaseManager.php (855, 2023-11-17)
app/src/Entity/ (0, 2023-11-17)
app/src/Entity/News.php (787, 2023-11-17)
app/src/Entity/User.php (553, 2023-11-17)
app/src/EnumFromNameTrait.php (439, 2023-11-17)
app/src/Http/ (0, 2023-11-17)
app/src/Http/HttpException.php (391, 2023-11-17)
app/src/Http/HttpMethod.php (562, 2023-11-17)
app/src/Http/Response/ (0, 2023-11-17)
app/src/Http/Response/Json.php (513, 2023-11-17)
... ...
# About
Simple vanilla PHP, JS, HTML and CSS news managing web application implementing MVC pattern. Enjoy!
# Prerequisites
- Docker compose installed on your machine
- Bash shell
# How to run
- Clone this repository
- Run `docker-compose up -d --build`
- Run `./bin/composer.sh install` to install composer dependencies inside the container
- Run `./bin/import_db_schema.sh` to import database schema
- Go to http://localhost:65090/ to see the application
- Login with sample user credentials: `admin` / `admin`
# Configuration
## Server
You can change server port binding by editing the `compose.yml` file and `mysql.env`. Change port binding for `frankenphp` service and
`SERVER_NAME` accordingly inside `franken.env`. For more information about FrankenPHP configuration, please refer to the https://frankenphp.dev/.
## Database
You can change port binding for MySQL service by editing the `compose.yml` file.
You can change database credentials by editing the `mysql.env` file.
For more information about MySQL configuration, please refer to the https://hub.docker.com/_/mysql.
## App configuration
App configuration is stored inside `app/config` directory.
近期下载者:
相关文件:
收藏者: