Skip to content

Commit

Permalink
Release 0.9.1 (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
NuwanJ authored Jul 19, 2024
1 parent 02ec819 commit ef6995d
Show file tree
Hide file tree
Showing 674 changed files with 29,025 additions and 6,567 deletions.
15 changes: 14 additions & 1 deletion .env.example
100644 → 100755
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="admin@admin.com"
SEED_ADMIN_PASSWORD="admin_user"

SEED_USER_EMAIL="user@user.com"
SEED_USER_PASSWORD="regular_user"

SEED_LECTURER_EMAIL="lecturer@example.com"
SEED_LECTURER_PASSWORD="lecturer_user"

SEED_TECH_OFFICER_EMAIL="techofficer@example.com"
SEED_TECH_OFFICER_PASSWORD="tech_officer_user"

SEED_MAINTAINER_EMAIL="maintainer@example.com"
SEED_MAINTAINER_PASSWORD="maintainer_user"

# Misc
APP_READ_ONLY=false
APP_READ_ONLY_LOGIN=true
Expand Down
132 changes: 132 additions & 0 deletions .env.sqlite
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="admin@admin.com"
SEED_ADMIN_PASSWORD="admin_user"

SEED_USER_EMAIL="user@user.com"
SEED_USER_PASSWORD="regular_user"

SEED_LECTURER_EMAIL="lecturer@example.com"
SEED_LECTURER_PASSWORD="lecturer_user"

SEED_TECH_OFFICER_EMAIL="techofficer@example.com"
SEED_TECH_OFFICER_PASSWORD="tech_officer_user"

SEED_MAINTAINER_EMAIL="maintainer@example.com"
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
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 modified .gitattributes
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions .githooks/pre-push
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
61 changes: 33 additions & 28 deletions .github/workflows/laravel.yml
100644 → 100755
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
31 changes: 31 additions & 0 deletions .github/workflows/laravel_push.yml
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
8 changes: 6 additions & 2 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/public/hot
/public/storage
/public/img
/public/files
/public/mix-manifest.json
/storage/*.key
/vendor
Expand All @@ -16,7 +17,6 @@ _ide_helper.php
.DS_Store
.env
.env.backup
.idea
.php_cs.cache
.phpunit.result.cache
.phpstorm.meta.php
Expand All @@ -31,5 +31,9 @@ npm-debug.log
output.txt
Thumbs.db
yarn-error.log
package-lock.json
commands.txt
composer.lock
notes.txt
package-lock.json
yarn.lock
/.idea
Empty file modified .php_cs
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
10 changes: 10 additions & 0 deletions .run/Migrate.run.xml
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>
10 changes: 10 additions & 0 deletions .run/Serve.run.xml
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>
5 changes: 5 additions & 0 deletions .run/Test.run.xml
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 modified .styleci.yml
100644 → 100755
Empty file.
14 changes: 14 additions & 0 deletions .tsconfig
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"
}
}
Loading

0 comments on commit ef6995d

Please sign in to comment.