chg: [restructure] the application
- move the app dir's contents to the source - update composer for easier installationremotes/origin/main
parent
e39df4c9ca
commit
44c60942c0
|
@ -0,0 +1 @@
|
||||||
|
config/app_local.php
|
|
@ -1,23 +0,0 @@
|
||||||
; This file is for unifying the coding style for different editors and IDEs.
|
|
||||||
; More information at http://editorconfig.org
|
|
||||||
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.bat]
|
|
||||||
end_of_line = crlf
|
|
||||||
|
|
||||||
[*.yml]
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.twig]
|
|
||||||
insert_final_newline = false
|
|
||||||
|
|
||||||
[Makefile]
|
|
||||||
indent_style = tab
|
|
|
@ -1,54 +0,0 @@
|
||||||
# Define the line ending behavior of the different file extensions
|
|
||||||
# Set default behavior, in case users don't have core.autocrlf set.
|
|
||||||
* text=auto
|
|
||||||
* text eol=lf
|
|
||||||
|
|
||||||
# Explicitly declare text files we want to always be normalized and converted
|
|
||||||
# to native line endings on checkout.
|
|
||||||
*.php text
|
|
||||||
*.default text
|
|
||||||
*.ctp text
|
|
||||||
*.sql text
|
|
||||||
*.md text
|
|
||||||
*.po text
|
|
||||||
*.js text
|
|
||||||
*.css text
|
|
||||||
*.ini text
|
|
||||||
*.properties text
|
|
||||||
*.txt text
|
|
||||||
*.xml text
|
|
||||||
*.svg text
|
|
||||||
*.yml text
|
|
||||||
.htaccess text
|
|
||||||
|
|
||||||
# Declare files that will always have CRLF line endings on checkout.
|
|
||||||
*.bat eol=crlf
|
|
||||||
|
|
||||||
# Declare files that will always have LF line endings on checkout.
|
|
||||||
*.pem eol=lf
|
|
||||||
|
|
||||||
# Denote all files that are truly binary and should not be modified.
|
|
||||||
*.png binary
|
|
||||||
*.jpg binary
|
|
||||||
*.gif binary
|
|
||||||
*.webp binary
|
|
||||||
*.ico binary
|
|
||||||
*.mo binary
|
|
||||||
*.pdf binary
|
|
||||||
*.phar binary
|
|
||||||
*.woff binary
|
|
||||||
*.woff2 binary
|
|
||||||
*.ttf binary
|
|
||||||
*.otf binary
|
|
||||||
*.eot binary
|
|
||||||
*.gz binary
|
|
||||||
*.bz2 binary
|
|
||||||
*.7z binary
|
|
||||||
*.zip binary
|
|
||||||
*.webm binary
|
|
||||||
*.mp4 binary
|
|
||||||
*.ogv binary
|
|
||||||
|
|
||||||
# Remove files for archives generated using `git archive`
|
|
||||||
phpstan.neon export-ignore
|
|
||||||
.github export-ignore
|
|
|
@ -1,43 +0,0 @@
|
||||||
# CakePHP specific files #
|
|
||||||
##########################
|
|
||||||
/config/app_local.php
|
|
||||||
/config/.env
|
|
||||||
/logs/*
|
|
||||||
/tmp/*
|
|
||||||
/vendor/*
|
|
||||||
|
|
||||||
# OS generated files #
|
|
||||||
######################
|
|
||||||
.DS_Store
|
|
||||||
.DS_Store?
|
|
||||||
._*
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
Icon?
|
|
||||||
ehthumbs.db
|
|
||||||
Thumbs.db
|
|
||||||
.directory
|
|
||||||
|
|
||||||
# Tool specific files #
|
|
||||||
#######################
|
|
||||||
# PHPUnit
|
|
||||||
.phpunit.result.cache
|
|
||||||
# vim
|
|
||||||
*~
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
# sublime text & textmate
|
|
||||||
*.sublime-*
|
|
||||||
*.stTheme.cache
|
|
||||||
*.tmlanguage.cache
|
|
||||||
*.tmPreferences.cache
|
|
||||||
# Eclipse
|
|
||||||
.settings/*
|
|
||||||
# JetBrains, aka PHPStorm, IntelliJ IDEA
|
|
||||||
.idea/*
|
|
||||||
# NetBeans
|
|
||||||
nbproject/*
|
|
||||||
# Visual Studio Code
|
|
||||||
.vscode
|
|
||||||
# Sass preprocessor
|
|
||||||
.sass-cache/
|
|
|
@ -1,5 +0,0 @@
|
||||||
<IfModule mod_rewrite.c>
|
|
||||||
RewriteEngine on
|
|
||||||
RewriteRule ^$ webroot/ [L]
|
|
||||||
RewriteRule (.*) webroot/$1 [L]
|
|
||||||
</IfModule>
|
|
|
@ -1,53 +0,0 @@
|
||||||
# CakePHP Application Skeleton
|
|
||||||
|
|
||||||
[![Build Status](https://img.shields.io/travis/cakephp/app/master.svg?style=flat-square)](https://travis-ci.org/cakephp/app)
|
|
||||||
[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/app.svg?style=flat-square)](https://packagist.org/packages/cakephp/app)
|
|
||||||
[![PHPStan](https://img.shields.io/badge/PHPStan-level%207-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)
|
|
||||||
|
|
||||||
A skeleton for creating applications with [CakePHP](https://cakephp.org) 4.x.
|
|
||||||
|
|
||||||
The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp).
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. Download [Composer](https://getcomposer.org/doc/00-intro.md) or update `composer self-update`.
|
|
||||||
2. Run `php composer.phar create-project --prefer-dist cakephp/app [app_name]`.
|
|
||||||
|
|
||||||
If Composer is installed globally, run
|
|
||||||
|
|
||||||
```bash
|
|
||||||
composer create-project --prefer-dist cakephp/app
|
|
||||||
```
|
|
||||||
|
|
||||||
In case you want to use a custom app dir name (e.g. `/myapp/`):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
composer create-project --prefer-dist cakephp/app myapp
|
|
||||||
```
|
|
||||||
|
|
||||||
You can now either use your machine's webserver to view the default home page, or start
|
|
||||||
up the built-in webserver with:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bin/cake server -p 8765
|
|
||||||
```
|
|
||||||
|
|
||||||
Then visit `http://localhost:8765` to see the welcome page.
|
|
||||||
|
|
||||||
## Update
|
|
||||||
|
|
||||||
Since this skeleton is a starting point for your application and various files
|
|
||||||
would have been modified as per your needs, there isn't a way to provide
|
|
||||||
automated upgrades, so you have to do any updates manually.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
Read and edit the environment specific `config/app_local.php` and setup the
|
|
||||||
`'Datasources'` and any other configuration relevant for your application.
|
|
||||||
Other environment agnostic settings can be changed in `config/app.php`.
|
|
||||||
|
|
||||||
## Layout
|
|
||||||
|
|
||||||
The app skeleton uses [Milligram](https://milligram.io/) (v1.3) minimalist CSS
|
|
||||||
framework by default. You can, however, replace it with any other library or
|
|
||||||
custom styles.
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,38 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Used as a default to seed config/.env which
|
|
||||||
# enables you to use environment variables to configure
|
|
||||||
# the aspects of your application that vary by
|
|
||||||
# environment.
|
|
||||||
#
|
|
||||||
# Having this file in production is considered a **SECURITY RISK** and also decreases
|
|
||||||
# the boostrap performance of your application.
|
|
||||||
#
|
|
||||||
# To use this file, first copy it into `config/.env`. Also ensure the related
|
|
||||||
# code block for loading this file is uncommented in `config/boostrap.php`
|
|
||||||
#
|
|
||||||
# In development .env files are parsed by PHP
|
|
||||||
# and set into the environment. This provides a simpler
|
|
||||||
# development workflow over standard environment variables.
|
|
||||||
export APP_NAME="__APP_NAME__"
|
|
||||||
export DEBUG="true"
|
|
||||||
export APP_ENCODING="UTF-8"
|
|
||||||
export APP_DEFAULT_LOCALE="en_US"
|
|
||||||
export APP_DEFAULT_TIMEZONE="UTC"
|
|
||||||
export SECURITY_SALT="__SALT__"
|
|
||||||
|
|
||||||
# Uncomment these to define cache configuration via environment variables.
|
|
||||||
#export CACHE_DURATION="+2 minutes"
|
|
||||||
#export CACHE_DEFAULT_URL="file://tmp/cache/?prefix=${APP_NAME}_default&duration=${CACHE_DURATION}"
|
|
||||||
#export CACHE_CAKECORE_URL="file://tmp/cache/persistent?prefix=${APP_NAME}_cake_core&serialize=true&duration=${CACHE_DURATION}"
|
|
||||||
#export CACHE_CAKEMODEL_URL="file://tmp/cache/models?prefix=${APP_NAME}_cake_model&serialize=true&duration=${CACHE_DURATION}"
|
|
||||||
|
|
||||||
# Uncomment these to define email transport configuration via environment variables.
|
|
||||||
#export EMAIL_TRANSPORT_DEFAULT_URL=""
|
|
||||||
|
|
||||||
# Uncomment these to define database configuration via environment variables.
|
|
||||||
#export DATABASE_URL="mysql://my_app:secret@localhost/${APP_NAME}?encoding=utf8&timezone=UTC&cacheMetadata=true"eIdentifiers=false&persistent=false"
|
|
||||||
#export DATABASE_TEST_URL="mysql://my_app:secret@localhost/test_${APP_NAME}?encoding=utf8&timezone=UTC&cacheMetadata=true"eIdentifiers=false&persistent=false"
|
|
||||||
|
|
||||||
# Uncomment these to define logging configuration via environment variables.
|
|
||||||
#export LOG_DEBUG_URL="file://logs/?levels[]=notice&levels[]=info&levels[]=debug&file=debug"
|
|
||||||
#export LOG_ERROR_URL="file://logs/?levels[]=warning&levels[]=error&levels[]=critical&levels[]=alert&levels[]=emergency&file=error"
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit c9cd3e4a083a69bcd2eefb1d1b62e6106e2ce469
|
|
|
@ -1,27 +1,27 @@
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
::
|
::
|
||||||
:: Cake is a Windows batch script for invoking CakePHP shell commands
|
:: Cake is a Windows batch script for invoking CakePHP shell commands
|
||||||
::
|
::
|
||||||
:: CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
:: CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
||||||
:: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
:: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||||
::
|
::
|
||||||
:: Licensed under The MIT License
|
:: Licensed under The MIT License
|
||||||
:: Redistributions of files must retain the above copyright notice.
|
:: Redistributions of files must retain the above copyright notice.
|
||||||
::
|
::
|
||||||
:: @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
:: @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||||
:: @link https://cakephp.org CakePHP(tm) Project
|
:: @link https://cakephp.org CakePHP(tm) Project
|
||||||
:: @since 2.0.0
|
:: @since 2.0.0
|
||||||
:: @license https://opensource.org/licenses/mit-license.php MIT License
|
:: @license https://opensource.org/licenses/mit-license.php MIT License
|
||||||
::
|
::
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
SET app=%0
|
SET app=%0
|
||||||
SET lib=%~dp0
|
SET lib=%~dp0
|
||||||
|
|
||||||
php "%lib%cake.php" %*
|
php "%lib%cake.php" %*
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
exit /B %ERRORLEVEL%
|
exit /B %ERRORLEVEL%
|
|
@ -12,6 +12,6 @@ class InstanceController extends AppController
|
||||||
public function home()
|
public function home()
|
||||||
{
|
{
|
||||||
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
||||||
$this->set('md', file_get_contents(ROOT . '/../README.md'));
|
$this->set('md', file_get_contents(ROOT . '/README.md'));
|
||||||
}
|
}
|
||||||
}
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue