glick-api
所属分类:后台框架
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2023-12-02 21:49:43
上 传 者:
sh-1993
说明: 跟踪基于时间的事件的发生。
(Track occurrences of time-based events.)
文件列表:
.env.example (764, 2023-12-02)
COPYING (35149, 2023-12-02)
app/ (0, 2023-12-02)
app/Console/ (0, 2023-12-02)
app/Console/Commands/ (0, 2023-12-02)
app/Console/Commands/ResetAuth.php (966, 2023-12-02)
app/Console/Kernel.php (681, 2023-12-02)
app/Exceptions/ (0, 2023-12-02)
app/Exceptions/Handler.php (3529, 2023-12-02)
app/Http/ (0, 2023-12-02)
app/Http/Controllers/ (0, 2023-12-02)
app/Http/Controllers/ActionController.php (170, 2023-12-02)
app/Http/Controllers/ActionTypeController.php (174, 2023-12-02)
app/Http/Controllers/AuthController.php (9109, 2023-12-02)
app/Http/Controllers/Controller.php (358, 2023-12-02)
app/Http/Controllers/UserController.php (1212, 2023-12-02)
app/Http/Kernel.php (1803, 2023-12-02)
app/Http/Middleware/ (0, 2023-12-02)
app/Http/Middleware/Authenticate.php (681, 2023-12-02)
app/Http/Middleware/EncryptCookies.php (273, 2023-12-02)
app/Http/Middleware/PreventRequestsDuringMaintenance.php (332, 2023-12-02)
app/Http/Middleware/RedirectIfAuthenticated.php (655, 2023-12-02)
app/Http/Middleware/TrimStrings.php (391, 2023-12-02)
app/Http/Middleware/TrustHosts.php (328, 2023-12-02)
app/Http/Middleware/TrustProxies.php (433, 2023-12-02)
app/Http/Middleware/VerifyCsrfToken.php (286, 2023-12-02)
app/Models/ (0, 2023-12-02)
app/Models/Action.php (3786, 2023-12-02)
app/Models/ActionType.php (4727, 2023-12-02)
app/Models/Option.php (2172, 2023-12-02)
app/Models/User.php (2362, 2023-12-02)
app/Observers/ (0, 2023-12-02)
app/Observers/ActionObserver.php (472, 2023-12-02)
app/Policies/ (0, 2023-12-02)
app/Policies/ActionPolicy.php (1658, 2023-12-02)
... ...
# Glick API
[View the site](https://glick.jennybelanger.com/).
## Development
### Requirements
- [Composer](https://getcomposer.org/)
- [Git](https://git-scm.com/)
- Database
- Web server with PHP
### Setup
``` bash
# Clone the API repo
git clone https://github.com/jlbelanger/glick-api.git
cd glick-api
# Configure the environment settings
cp .env.example .env
# Install dependencies
composer install
# Generate key
php artisan key:generate
# Run database migrations
php artisan migrate
php artisan db:seed
# Set permissions
chown -R www-data:www-data storage
# Create account with username "test" and password "password" (or reset existing account password to "password")
php artisan reset-auth
```
Then, setup the [Glick app](https://github.com/jlbelanger/glick-app).
### Lint
``` bash
./vendor/bin/phpcs
```
### Test
``` bash
./vendor/bin/phpunit
```
## Deployment
Essentially, to set up the repo on the server:
``` bash
git clone https://github.com/jlbelanger/glick-api.git
cd glick-api
cp .env.example .env
# Then configure the values in .env.
composer install
php artisan key:generate
php artisan migrate
chown -R www-data:www-data storage
```
For subsequent deploys, push changes to the main branch, then run the following on the server:
``` bash
cd glick-api
git fetch origin
git pull
composer install
php artisan config:clear
```
### Deploy script
Note: The deploy script included in this repo depends on other scripts that only exist in my private repos. If you want to deploy this repo, you'll have to create your own script.
``` bash
./deploy.sh
```
近期下载者:
相关文件:
收藏者: