https://github.com/cuba-weather/cuba-weather-server
Cuba Weather Website + API
https://github.com/cuba-weather/cuba-weather-server
Last synced: 2 months ago
JSON representation
Cuba Weather Website + API
- Host: GitHub
- URL: https://github.com/cuba-weather/cuba-weather-server
- Owner: cuba-weather
- License: bsd-3-clause
- Created: 2020-03-17T03:21:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T02:09:55.000Z (almost 2 years ago)
- Last Synced: 2025-08-04T08:37:24.517Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 4.84 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Cuba Weather Website + API
==========================INSTALLATION
------------- `git clone https://github.com/cuba-weather/cuba-weather-server.git`
- `composer install`
- `php init` (setup Development scenario)
- configure db in `common/config/main-local.php`
- `php yii migrate`ENTRY POINTS
------------There are several entry points in this project:
- frontend/web
- backend/web
- api/webPoint your webserver to them or check the `serve` command with `php yii help serve` to use the PHP built-in web server which is enought for development purposes.
DIRECTORY STRUCTURE
-------------------```
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
```