-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
674 changed files
with
29,025 additions
and
6,567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
APP_NAME="CE Smart Inventory" | ||
|
||
APP_ENV=local | ||
#APP_ENV=production | ||
|
||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
# Login | ||
# Default Login accounts with passwords | ||
SEED_ADMIN_EMAIL="[email protected]" | ||
SEED_ADMIN_PASSWORD="admin_user" | ||
|
||
SEED_USER_EMAIL="[email protected]" | ||
SEED_USER_PASSWORD="regular_user" | ||
|
||
SEED_LECTURER_EMAIL="[email protected]" | ||
SEED_LECTURER_PASSWORD="lecturer_user" | ||
|
||
SEED_TECH_OFFICER_EMAIL="[email protected]" | ||
SEED_TECH_OFFICER_PASSWORD="tech_officer_user" | ||
|
||
SEED_MAINTAINER_EMAIL="[email protected]" | ||
SEED_MAINTAINER_PASSWORD="maintainer_user" | ||
|
||
# Misc | ||
APP_READ_ONLY=false | ||
APP_READ_ONLY_LOGIN=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# Create a file at ./database/database.sqlite | ||
# run command -> touch ./database/database.sqlite | ||
# Then use this env file. No need mysql servers for development | ||
# This could cause problems if the seeders first record has the id = 0, mysql defaults to id=1. Therefore, use mysql | ||
# when creating new tables and seeders | ||
|
||
APP_NAME="CE Smart Inventory" | ||
|
||
APP_ENV=local | ||
#APP_ENV=production | ||
|
||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
# Default Login accounts with passwords | ||
SEED_ADMIN_EMAIL="[email protected]" | ||
SEED_ADMIN_PASSWORD="admin_user" | ||
|
||
SEED_USER_EMAIL="[email protected]" | ||
SEED_USER_PASSWORD="regular_user" | ||
|
||
SEED_LECTURER_EMAIL="[email protected]" | ||
SEED_LECTURER_PASSWORD="lecturer_user" | ||
|
||
SEED_TECH_OFFICER_EMAIL="[email protected]" | ||
SEED_TECH_OFFICER_PASSWORD="tech_officer_user" | ||
|
||
SEED_MAINTAINER_EMAIL="[email protected]" | ||
SEED_MAINTAINER_PASSWORD="maintainer_user" | ||
|
||
# Misc | ||
APP_READ_ONLY=false | ||
APP_READ_ONLY_LOGIN=true | ||
DEBUGBAR_ENABLED=false | ||
LOG_CHANNEL=daily | ||
LOG_LEVEL=debug | ||
|
||
# Drivers | ||
DB_CONNECTION=sqlite | ||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DRIVER=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
# Database | ||
DB_HOST=127.0.0.1 | ||
|
||
# Cache | ||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
# Queue | ||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=smtp.mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS=null | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
# AWS | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
# Pusher | ||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
# Application | ||
|
||
# Access | ||
ADMIN_REQUIRES_2FA=true | ||
CHANGE_EMAIL=true | ||
ENABLE_REGISTRATION=true | ||
PASSWORD_HISTORY=3 | ||
SINGLE_LOGIN=false | ||
PASSWORD_EXPIRES_DAYS=180 | ||
|
||
# Captcha | ||
# Get your credentials at: https://www.google.com/recaptcha/admin | ||
LOGIN_CAPTCHA_STATUS=false | ||
REGISTRATION_CAPTCHA_STATUS=false | ||
INVISIBLE_RECAPTCHA_SITEKEY= | ||
INVISIBLE_RECAPTCHA_SECRETKEY= | ||
|
||
# Socialite Providers | ||
FACEBOOK_ACTIVE=false | ||
BITBUCKET_ACTIVE=false | ||
GITHUB_ACTIVE=false | ||
GOOGLE_ACTIVE=false | ||
LINKEDIN_ACTIVE=false | ||
TWITTER_ACTIVE=false | ||
|
||
#FACEBOOK_CLIENT_ID= | ||
#FACEBOOK_CLIENT_SECRET= | ||
#FACEBOOK_REDIRECT=${APP_URL}/login/facebook/callback | ||
|
||
#BITBUCKET_CLIENT_ID= | ||
#BITBUCKET_CLIENT_SECRET= | ||
#BITBUCKET_REDIRECT=${APP_URL}/login/bitbucket/callback | ||
|
||
#GITHUB_CLIENT_ID= | ||
#GITHUB_CLIENT_SECRET= | ||
#GITHUB_REDIRECT=${APP_URL}/login/github/callback | ||
|
||
#GOOGLE_CLIENT_ID= | ||
#GOOGLE_CLIENT_SECRET= | ||
#GOOGLE_REDIRECT=${APP_URL}/login/google/callback | ||
|
||
#LINKEDIN_CLIENT_ID= | ||
#LINKEDIN_CLIENT_SECRET= | ||
#LINKEDIN_REDIRECT=${APP_URL}/login/linkedin/callback | ||
|
||
#TWITTER_CLIENT_ID= | ||
#TWITTER_CLIENT_SECRET= | ||
#TWITTER_REDIRECT=${APP_URL}/login/twitter/callback |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/bash | ||
|
||
echo "Git hook executing: pre-commit actions" | ||
|
||
php artisan test -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
name: Laravel | ||
|
||
on: [push, pull_request] | ||
on: [pull_request] | ||
|
||
jobs: | ||
laravel-tests: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e | ||
with: | ||
php-version: '8.0' | ||
- uses: actions/checkout@v2 | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Create Database | ||
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: | | ||
php artisan test --colors --debug | ||
laravel-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e | ||
with: | ||
php-version: '8.0' | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
|
||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
|
||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
|
||
- name: Create Database | ||
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: | | ||
php artisan test --colors --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Laravel Push Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
laravel-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e | ||
with: | ||
php-version: '8.0' | ||
- uses: actions/checkout@v2 | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Create Database | ||
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: | | ||
php artisan test -p --colors --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Migrate" type="PhpLocalRunConfigurationType" factoryName="PHP Console" path="$PROJECT_DIR$/artisan" scriptParameters="migrate:fresh --seed"> | ||
<CommandLine> | ||
<PhpTestInterpreterSettings> | ||
<option name="interpreterName" value="PHP 7.4.9" /> | ||
</PhpTestInterpreterSettings> | ||
</CommandLine> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Serve" type="PhpLocalRunConfigurationType" factoryName="PHP Console" path="$PROJECT_DIR$/artisan" scriptParameters="serve"> | ||
<CommandLine> | ||
<PhpTestInterpreterSettings> | ||
<option name="interpreterName" value="PHP 7.4.9" /> | ||
</PhpTestInterpreterSettings> | ||
</CommandLine> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Test" type="PhpLocalRunConfigurationType" factoryName="PHP Console" path="$PROJECT_DIR$/artisan" scriptParameters="test"> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "system" | ||
}, | ||
"include": [ | ||
"resources/js/frontend/components/*" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"vueCompilerOptions": { | ||
"target": "2.7" | ||
} | ||
} |
Oops, something went wrong.