diff --git a/.env.example b/.env.example index c8d4e223..b540b9be 100644 --- a/.env.example +++ b/.env.example @@ -2,14 +2,14 @@ APP_ENV=production APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0= APP_DEBUG=true APP_LOG_LEVEL=debug -APP_URL=http://crater.test +APP_URL=http://invoiceshelf.test DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 -DB_DATABASE=crater -DB_USERNAME=crater -DB_PASSWORD="crater" +DB_DATABASE=invoiceshelf +DB_USERNAME=invoiceshelf +DB_PASSWORD="invoiceshelf" BROADCAST_DRIVER=log CACHE_DRIVER=file @@ -32,8 +32,8 @@ PUSHER_APP_ID= PUSHER_KEY= PUSHER_SECRET= -SANCTUM_STATEFUL_DOMAINS=crater.test -SESSION_DOMAIN=crater.test +SANCTUM_STATEFUL_DOMAINS=invoiceshelf.test +SESSION_DOMAIN=invoiceshelf.test TRUSTED_PROXIES="*" diff --git a/.env.testing b/.env.testing index d5e8caba..4fd02cf3 100644 --- a/.env.testing +++ b/.env.testing @@ -9,5 +9,5 @@ MAIL_PORT=587 MAIL_USERNAME=ff538f0e1037f4 MAIL_PASSWORD=c04c81145fcb73 MAIL_ENCRYPTION=tls -MAIL_FROM_ADDRESS="admin@craterapp.com" +MAIL_FROM_ADDRESS="admin@invoiceshelf.com" MAIL_FROM_NAME="John Doe" diff --git a/composer.lock b/composer.lock index 6386f2a3..641b40bb 100644 --- a/composer.lock +++ b/composer.lock @@ -1727,7 +1727,7 @@ ], "description": "Crater Module Management Package", "keywords": [ - "crater", + "invoiceshelf", "laravel", "module", "modules", diff --git a/config/invoiceshelf.php b/config/invoiceshelf.php index be63d18a..6a13ff4a 100644 --- a/config/invoiceshelf.php +++ b/config/invoiceshelf.php @@ -46,7 +46,7 @@ return [ /* * Marketplace url. */ - 'base_url' => 'https://craterapp.com', + 'base_url' => 'https://invoiceshelf.com', /* * List of languages supported by Crater. diff --git a/config/mail.php b/config/mail.php index 9f1ff07e..094f5ad4 100644 --- a/config/mail.php +++ b/config/mail.php @@ -56,7 +56,7 @@ return [ */ 'from' => [ - 'address' => env('MAIL_FROM_ADDRESS', 'admin@crater.in'), + 'address' => env('MAIL_FROM_ADDRESS', 'admin@invoiceshelf.com'), 'name' => env('MAIL_FROM_NAME', 'Crater'), ], diff --git a/database/seeders/UsersTableSeeder.php b/database/seeders/UsersTableSeeder.php index 23157850..a4712b16 100644 --- a/database/seeders/UsersTableSeeder.php +++ b/database/seeders/UsersTableSeeder.php @@ -19,10 +19,10 @@ class UsersTableSeeder extends Seeder public function run() { $user = User::create([ - 'email' => 'admin@craterapp.com', + 'email' => 'admin@invoiceshelf.com', 'name' => 'Jane Doe', 'role' => 'super admin', - 'password' => 'crater@123', + 'password' => 'invoiceshelf@123', ]); $company = Company::create([ diff --git a/docker-compose.yml b/docker-compose.yml index 0c7cdc20..54e6f35c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,18 +4,18 @@ services: app: build: args: - user: crater-user + user: invoiceshelf-user uid: 1000 context: ./ dockerfile: Dockerfile - image: crater-php + image: invoiceshelf-php restart: unless-stopped working_dir: /var/www/ volumes: - ./:/var/www - ./docker-compose/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:rw,delegated networks: - - crater + - invoiceshelf db: image: mariadb @@ -26,14 +26,14 @@ services: # and uncomment the line under this one. #- ./docker-compose/db/data:/var/lib/mysql:rw,delegated environment: - MYSQL_USER: crater - MYSQL_PASSWORD: crater - MYSQL_DATABASE: crater - MYSQL_ROOT_PASSWORD: crater + MYSQL_USER: invoiceshelf + MYSQL_PASSWORD: invoiceshelf + MYSQL_DATABASE: invoiceshelf + MYSQL_ROOT_PASSWORD: invoiceshelf ports: - '33006:3306' networks: - - crater + - invoiceshelf nginx: image: nginx:1.17-alpine @@ -44,7 +44,7 @@ services: - ./:/var/www - ./docker-compose/nginx:/etc/nginx/conf.d/ networks: - - crater + - invoiceshelf cron: build: @@ -53,11 +53,11 @@ services: volumes: - ./:/var/www networks: - - crater + - invoiceshelf volumes: db: networks: - crater: + invoiceshelf: driver: bridge diff --git a/phpunit.xml b/phpunit.xml index 2ae23513..21e03a9d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -25,6 +25,6 @@ - + diff --git a/readme.md b/readme.md index 312125ba..f76fa6a7 100644 --- a/readme.md +++ b/readme.md @@ -87,7 +87,7 @@ Join the Crater discord server to discuss: ## Translate -Help us translate on https://crowdin.com/project/crater-invoice +Help us translate on https://crowdin.com/project/invoiceshelf **Thanks to Translation Contributors:** diff --git a/routes/api.php b/routes/api.php index 8b002409..f3782cb8 100644 --- a/routes/api.php +++ b/routes/api.php @@ -124,7 +124,7 @@ use Illuminate\Support\Facades\Route; Route::get('ping', function () { return response()->json([ - 'success' => 'crater-self-hosted', + 'success' => 'invoiceshelf-self-hosted', ]); })->name('ping'); diff --git a/tests/Feature/Admin/CompanySettingTest.php b/tests/Feature/Admin/CompanySettingTest.php index b5e29c3f..948d6c6f 100644 --- a/tests/Feature/Admin/CompanySettingTest.php +++ b/tests/Feature/Admin/CompanySettingTest.php @@ -45,7 +45,7 @@ test('update profile', function () { $user = [ 'name' => 'John Doe', 'password' => 'admin@123', - 'email' => 'admin@crater.in', + 'email' => 'admin@invoiceshelf.com', ]; $response = putJson('api/v1/me', $user); @@ -101,7 +101,7 @@ test('update settings', function () { 'fiscal_year' => '1-12', 'carbon_date_format' => 'Y/m/d', 'moment_date_format' => 'YYYY/MM/DD', - 'notification_email' => 'noreply@crater.in', + 'notification_email' => 'noreply@invoiceshelf.com', 'notify_invoice_viewed' => 'YES', 'notify_estimate_viewed' => 'YES', 'tax_per_item' => 'YES', diff --git a/uffizzi/.env.example b/uffizzi/.env.example index 3b52a3db..d3492100 100644 --- a/uffizzi/.env.example +++ b/uffizzi/.env.example @@ -2,14 +2,14 @@ APP_ENV=production APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0= APP_DEBUG=true APP_LOG_LEVEL=debug -APP_URL=http://crater.test +APP_URL=http://invoiceshelf.test DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 -DB_DATABASE=crater -DB_USERNAME=crater -DB_PASSWORD=crater +DB_DATABASE=invoiceshelf +DB_USERNAME=invoiceshelf +DB_PASSWORD=invoiceshelf BROADCAST_DRIVER=log CACHE_DRIVER=file @@ -32,8 +32,8 @@ PUSHER_APP_ID= PUSHER_KEY= PUSHER_SECRET= -SANCTUM_STATEFUL_DOMAINS=crater.test -SESSION_DOMAIN=crater.test +SANCTUM_STATEFUL_DOMAINS=invoiceshelf.test +SESSION_DOMAIN=invoiceshelf.test TRUSTED_PROXIES="*" diff --git a/uffizzi/Dockerfile b/uffizzi/Dockerfile index b78fdb10..19e15053 100644 --- a/uffizzi/Dockerfile +++ b/uffizzi/Dockerfile @@ -27,9 +27,9 @@ RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Create system user to run Composer and Artisan Commands -RUN useradd -G www-data,root -u 1000 -d /home/crater-user crater-user -RUN mkdir -p /home/crater-user/.composer && \ - chown -R crater-user:crater-user /home/crater-user +RUN useradd -G www-data,root -u 1000 -d /home/invoiceshelf-user invoiceshelf-user +RUN mkdir -p /home/invoiceshelf-user/.composer && \ + chown -R invoiceshelf-user:invoiceshelf-user /home/invoiceshelf-user # Mounted volumes COPY ./ /var/www @@ -39,10 +39,10 @@ COPY ./uffizzi/.env.example /var/www/.env # Set working directory WORKDIR /var/www -RUN chown -R crater-user:crater-user ./ -RUN chmod -R 775 composer.json composer.lock \ +RUN chown -R invoiceshelf-user:invoiceshelf-user ./ +RUN chmod -R 775 composer.json composer.lock \ composer.lock storage/framework/ \ - storage/logs/ bootstrap/cache/ /home/crater-user/.composer + storage/logs/ bootstrap/cache/ /home/invoiceshelf-user/.composer RUN chown -R $(whoami):$(whoami) /var/log/ RUN chmod -R 775 /var/log @@ -52,13 +52,13 @@ RUN npm config set user 0 RUN npm config set unsafe-perm true # Frontend bulding RUN sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' /var/www/.env -RUN sed -i 's/DB_DATABASE=crater/DB_DATABASE=\/tmp\/crater.sqlite/g' /var/www/.env -RUN touch /tmp/crater.sqlite +RUN sed -i 's/DB_DATABASE=invoiceshelf/DB_DATABASE=\/tmp\/invoiceshelf.sqlite/g' /var/www/.env +RUN touch /tmp/invoiceshelf.sqlite RUN composer install --no-interaction --prefer-dist RUN npm i -f RUN npm install --save-dev sass RUN export NODE_OPTIONS="--max-old-space-size=4096" && /usr/bin/npx vite build --target=es2020 RUN sed -i 's/DB_CONNECTION=sqlite/DB_CONNECTION=mysql/g' /var/www/.env -RUN sed -i 's/DB_DATABASE=\/tmp\/crater.sqlite/DB_DATABASE=crater/g' /var/www/.env +RUN sed -i 's/DB_DATABASE=\/tmp\/invoiceshelf.sqlite/DB_DATABASE=invoiceshelf/g' /var/www/.env -USER crater-user +USER invoiceshelf-user diff --git a/uffizzi/crond/Dockerfile b/uffizzi/crond/Dockerfile index 3fb5567c..9b850bfd 100644 --- a/uffizzi/crond/Dockerfile +++ b/uffizzi/crond/Dockerfile @@ -26,9 +26,9 @@ RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Create system user to run Composer and Artisan Commands -RUN useradd -G www-data,root -u 1000 -d /home/crater-user crater-user -RUN mkdir -p /home/crater-user/.composer && \ - chown -R crater-user:crater-user /home/crater-user +RUN useradd -G www-data,root -u 1000 -d /home/invoiceshelf-user invoiceshelf-user +RUN mkdir -p /home/invoiceshelf-user/.composer && \ + chown -R invoiceshelf-user:invoiceshelf-user /home/invoiceshelf-user # Mounted volumes COPY ./ /var/www @@ -38,10 +38,10 @@ COPY ./uffizzi/.env.example /var/www/.env # Set working directory WORKDIR /var/www -RUN chown -R crater-user:crater-user ./ -RUN chmod -R 775 composer.json composer.lock \ +RUN chown -R invoiceshelf-user:invoiceshelf-user ./ +RUN chmod -R 775 composer.json composer.lock \ composer.lock storage/framework/ \ - storage/logs/ bootstrap/cache/ /home/crater-user/.composer + storage/logs/ bootstrap/cache/ /home/invoiceshelf-user/.composer RUN composer config --no-plugins allow-plugins.pestphp/pest-plugin true && \ composer install --no-interaction --prefer-dist --optimize-autoloader && \ diff --git a/uffizzi/docker-compose.uffizzi.yml b/uffizzi/docker-compose.uffizzi.yml index e1dd79c8..fe5c79ed 100644 --- a/uffizzi/docker-compose.uffizzi.yml +++ b/uffizzi/docker-compose.uffizzi.yml @@ -11,10 +11,10 @@ services: restart: unless-stopped working_dir: /var/www/ command: ["-c"," - composer config --no-plugins allow-plugins.pestphp/pest-plugin true && - composer install --no-interaction --prefer-dist --optimize-autoloader && - php artisan storage:link || true && - php artisan key:generate --force && + composer config --no-plugins allow-plugins.pestphp/pest-plugin true && + composer install --no-interaction --prefer-dist --optimize-autoloader && + php artisan storage:link || true && + php artisan key:generate --force && php-fpm", ] entrypoint: /bin/sh @@ -29,10 +29,10 @@ services: image: mariadb restart: always environment: - MYSQL_USER: crater - MYSQL_PASSWORD: crater - MYSQL_DATABASE: crater - MYSQL_ROOT_PASSWORD: crater + MYSQL_USER: invoiceshelf + MYSQL_PASSWORD: invoiceshelf + MYSQL_DATABASE: invoiceshelf + MYSQL_ROOT_PASSWORD: invoiceshelf ports: - '33006:3306' deploy: @@ -54,5 +54,5 @@ services: cron: image: "${CROND_IMAGE}" restart: always - +