Go to file
2017-12-13 20:22:54 -06:00
.idea Fix and enable Subfleet/Fare tests and factories 2017-12-13 11:29:14 -06:00
.travis maybe this will work 2017-12-13 17:48:28 -06:00
app Fix and enable Subfleet/Fare tests and factories 2017-12-13 11:29:14 -06:00
bootstrap damn you travis. fixed multiple define 2017-08-14 18:41:55 -05:00
config Fix missing table name in migration and fix flight tests 2017-12-12 06:48:04 -06:00
database increase country column size in airports table 2017-12-13 11:46:48 -06:00
modules rename module to uppercase to match json 2017-12-05 21:57:12 -06:00
public remove extra files and messing with webpack 2017-12-07 18:43:09 -06:00
resources PIREP tests working, using minutes to track flight hours instead of seconds 2017-12-13 10:56:26 -06:00
routes Add more API resources; user bid management and tests #35 #36 2017-12-12 16:58:27 -06:00
storage add xml files to ignore in storage 2017-07-22 23:03:15 -05:00
tests fix null user in bid tests 2017-12-13 11:33:55 -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 Change the .env.dev.example file to remove the storage path 2017-12-13 09:46:36 -06:00
.env.prod.example Cleanup for settings table and moved some seed data into the migrations 2017-12-09 21:21:49 -06:00
.env.travis Cleanup for settings table and moved some seed data into the migrations 2017-12-09 21:21:49 -06:00
.gitignore Cache the api calls to vacentral and make the iata field optional 2017-12-07 17:44:05 -06:00
.htaccess #21 PIREP scaffolding 2017-06-28 19:57:22 -05:00
.travis.yml Move travis files and reduce verbosity 2017-12-13 17:10:43 -06: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
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-12-09 08:52:43 -06:00
composer.json remove old l4-settings package 2017-12-11 22:33:48 -06:00
composer.lock Rename the PilotService to UserService 2017-12-12 14:48:03 -06:00
composer.phar Include a copy of composer.phar 2017-12-13 20:22:54 -06:00
Dockerfile initial files 2017-06-07 18:43:25 -05:00
LICENSE Initial commit 2017-06-07 18:35:27 -05:00
Makefile Include a copy of composer.phar 2017-12-13 20:22:54 -06:00
package-lock.json Add additional settings; Use pilot id length from setting 2017-12-12 12:43:58 -06:00
package.json remove extra files and messing with webpack 2017-12-07 18:43:09 -06:00
phpunit.xml db cleanup/try phpunit with in-memory tests 2017-12-06 11:25:41 -06:00
phpvms.iml First try at nightly build file 2017-12-13 15:53:37 -06:00
Procfile Force php-fpm and run dnsmasq for valet 2017-12-06 17:45:56 -06:00
README.md Include a copy of composer.phar 2017-12-13 20:22:54 -06:00
webpack.mix.js remove extra files and messing with webpack 2017-12-07 18:43:09 -06: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

A full distribution, with all of the composer dependencies, is available at this tarball link. It's currently updated with every commit

Composer Access

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.dev.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 easiest way to load locally is to install Laravel Valet (if you're running a Mac). Once you install it, go to your phpvms directory, and run:

cp .env.dev.example .env
php artisan key:generate
make install   # this will install everything
valet link phpvms

Now going to http://phpvms.dev should work. If you want to use mysql, follow the valet directions on installing mysql (brew install mysql) and then update the .env file to point to the mysql.

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

creating/resetting the environment

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 install

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 one way to get your dev environment working if you're on Windows or don't want to install any Homebrew services on your Mac. 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