Go to file
2017-12-04 15:52:57 -06:00
.idea Edit user PIREP 2017-12-03 15:29:34 -06:00
app Flight search on frontend 2017-12-04 14:21:46 -06:00
bootstrap damn you travis. fixed multiple define 2017-08-14 18:41:55 -05:00
config match up db named/seeder to installer names/env names 2017-12-04 15:35:39 -06:00
database woops, broke the seeder 2017-12-04 15:52:57 -06:00
modules stupid gitignore file is insane 2017-12-02 10:28:47 -06:00
public #1 add installer, first pass 2017-12-04 12:20:05 -06:00
resources Flight search on frontend 2017-12-04 14:21:46 -06:00
routes Flight search on frontend 2017-12-04 14:21:46 -06:00
storage add xml files to ignore in storage 2017-07-22 23:03:15 -05:00
tests time formatting and tests 2017-12-03 14:34:32 -06:00
.bowerrc add bower for client deps 2017-08-15 18:04:13 -05:00
.editorconfig #23 set the rank payrate to an aircraft; add some sample data 2017-06-21 22:30:32 -05:00
.env.dev.example sample event listener and scaffolding for a module 2017-12-02 09:19:58 -06:00
.env.travis mysql in travis 2017-12-01 22:31:10 -06:00
.gitignore Fix gitignore rules for sample module 2017-12-01 14:56:52 -06:00
.htaccess #21 PIREP scaffolding 2017-06-28 19:57:22 -05:00
.travis.yml add missing listener files 2017-12-02 10:26:25 -06:00
after.sh include vagrant and update README 2017-06-13 12:50:03 -05:00
aliases include vagrant and update README 2017-06-13 12:50:03 -05:00
artisan laravel base files 2017-06-08 13:28:26 -05:00
bower.json cleanup of edit flight page; added deps 2017-11-01 11:08:36 -04:00
composer.json #1 point installer to my fork with some fixes 2017-12-04 13:11:11 -06:00
composer.lock #1 point installer to my fork with some fixes 2017-12-04 13:11:11 -06:00
Dockerfile initial files 2017-06-07 18:43:25 -05:00
gulpfile.js experimenting with gulp 2017-06-21 12:29:31 -05:00
Homestead.yaml include the Homestead.yaml 2017-06-13 12:51:01 -05:00
LICENSE Initial commit 2017-06-07 18:35:27 -05:00
Makefile add missing listener files 2017-12-02 10:26:25 -06:00
package-lock.json commit package-lock.json 2017-06-11 17:45:48 -05:00
package.json experimenting with gulp 2017-06-21 12:29:31 -05:00
phpunit.xml ignore output during tests 2017-11-23 10:03:01 -06:00
phpvms.iml project files 2017-12-03 00:47:49 -06:00
Procfile #11 some more organization around the aircraft 2017-06-14 09:39:02 -05:00
README.md Add default user/pass info for dev environment 2017-12-03 12:25:05 -06:00
server.php laravel base files 2017-06-08 13:28:26 -05:00
Vagrantfile include vagrant and update README 2017-06-13 12:50:03 -05:00

phpvms 7

Build Status Codacy Badge Total Downloads Latest Stable Version Latest Unstable Version License

The next phpvms version built on the laravel framework. work in progress. If you're looking for the old, phpVMS classic, it's available here.

installation

run the following commands. for right now, we're running on sqlite. for mysql, set DB_CONNECTION to mysql in the .env file.

cp .env.dev.example .env
composer install --no-interaction
php artisan database:create
php artisan migrate:refresh --seed

then point your webserver to the /public folder. for example, in nginx:

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    root /var/www/laravel/public;
    index index.php index.html index.htm;

    server_name localhost;

    location / {
            try_files $uri $uri/ =404;
    }
}

development environment

For development, copy the included .env.example to .env file. By default, it uses sqlite instead of mysql. This makes it much easier to be able to clear the database and new fixtures.

The default username and password are "admin@phpvms.net" and "admin". To see the available users in the development environment, see this file

makefile commands

I use Makefiles to be able to quickly setup the environment.

# to do an initial setup of the composer deps and install the DB
make

Then to reset the database/clear cache, use:

make reset

database seeding

There is a database/seeds/dev.yml which contains the initial seed data that can be used for testing. For production use, there is a prod.yml file. The make reset handles seeding the database with the data from the dev.yml.

virtual machine

Using Laravel Homestead is probably the easiest way to get this working. Follow their instructions for install. A Vagrantfile and Homestead.yaml is included here. Add this to your /etc/hosts:

127.0.0.1       phpvms.app

And then to launch:

vagrant up

And then accessing it via http://phpvms.app should just work.

(TODO: redis information, etc)

updating

extract files and run the migrations:

php artisan migrate