elliotjon / weather-module
天气模块
v1.0.3
2020-12-22 16:24 UTC
Requires
- anax/anax-cli: ^1.2
- anax/anax-ramverk1-me: ^1.0.0
- anax/di: ^2.0
Requires (Dev)
- anax/cache: ^2.0.0-beta.5
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-23 01:01:40 UTC
README
天气模块
此模块是 Blekinge Institute of Technology 的课程 'Webbaserade ramverk 1' 的一部分。天气模块是 Anax 框架的包。
默认说明
如何将模块集成到现有的 Anax 安装中。可以使用 composer 或脚手架。
Composer 安装
composer require elliotjon/weather-module
脚手架安装
将以下内容添加到现有的 composer.json 文件中
"repositories": [
{
"type": "vcs",
"url": "https://github.com/elliotjon/weather-module"
}
],
"require": {
"anax/anax-ramverk1-me": "^1.0.0",
"elliotjon/weather-module": "dev-master"
}
运行 composer update
安装脚本
天气模块包含一个安装脚本,用于将所需文件安装到 anax。
bash vendor/elliotjon/weather-module/.anax/scaffold/postprocess.d/600_weather_module.bash
或者手动执行以下操作
配置
将配置文件复制到 anax
rsync -av vendor/elliotjon/weather-module/config ./
视图
将视图文件复制到 anax
rsync -av vendor/elliotjon/weather-module/view ./
源代码
将源代码文件复制到 anax
rsync -av vendor/elliotjon/weather-module/src ./
测试
将测试文件复制到 anax
rsync -av vendor/elliotjon/weather-module/test ./
访问
如果您已经记住在 config/accesss.php 中添加了您的访问密钥,
现在可以通过 /geo
访问该模块。