diff --git a/app/Console/Commands/Inspire.php b/app/Console/Commands/Inspire.php deleted file mode 100644 index abb255d1..00000000 --- a/app/Console/Commands/Inspire.php +++ /dev/null @@ -1,34 +0,0 @@ -comment(PHP_EOL.Inspiring::quote().PHP_EOL); - } - -} diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php new file mode 100644 index 00000000..05d67084 --- /dev/null +++ b/app/Console/Commands/Install.php @@ -0,0 +1,62 @@ +error('Unable to connect to database.'); + $this->error('Please fill valid database credentials into .env and rerun this command.'); + + return; + } + + $this->comment('Attempting to install Attendize.'); + + if (!env('APP_KEY')) { + $this->info('Generating app key'); + Artisan::call('key:generate'); + } else { + $this->comment('App key exists -- skipping'); + } + + + $this->info('Migrating database'); + Artisan::call('migrate', ['--force' => true]); + + if (!Timezone::count()) { + $this->info('Seeding DB data'); + Artisan::call('db:seed', ['--force' => true]); + } else { + $this->comment('Data already seeded -- skipping'); + } + + $this->comment('Success! You can now run Attendize'); + } +} \ No newline at end of file diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 0c088c89..1ca66ee6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -12,6 +12,7 @@ class Kernel extends ConsoleKernel { */ protected $commands = [ 'App\Console\Commands\Inspire', + 'App\Console\Commands\Install' ]; /** diff --git a/readme.md b/readme.md index 7850f9e7..6fa811dd 100644 --- a/readme.md +++ b/readme.md @@ -8,10 +8,10 @@ https://www.attendize.com ----------- +######Demo Event Page: http://attendize.website/e/1/acmes-amazing-demo-event -*Attendize* is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organisers a simple solution to managing general admission events. +*Attendize* is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organisers a simple solution to managing general admission events, without paying extortionate service fees. > PLEASE NOTE: Attendize is still in the early stages development and therefore is likely to contain bugs. Be weary about using Attendize in a production environment. diff --git a/resources/views/ManageOrganiser/Partials/EventCreateAndEditJS.blade.php b/resources/views/ManageOrganiser/Partials/EventCreateAndEditJS.blade.php new file mode 100644 index 00000000..76c8ae19 --- /dev/null +++ b/resources/views/ManageOrganiser/Partials/EventCreateAndEditJS.blade.php @@ -0,0 +1,52 @@ +{!! HTML::script('vendor/simplemde/dist/simplemde.min.js') !!} +{!! HTML::style('vendor/simplemde/dist/simplemde.min.css') !!} + + + + + \ No newline at end of file