Go to file
2018-01-30 11:05:14 -06:00
.travis remove unused deploy key 2018-01-20 10:11:26 -05:00
app Change fuel_used to block_fuel 2018-01-30 11:05:14 -06:00
bootstrap Add config.php at root; include configuration overhaul and then fixes to the installer #156 2018-01-29 13:16:39 -06:00
config Re-add pulling the values from the env if not overridden #156 2018-01-29 14:48:11 -06:00
modules Add config.php at root; include configuration overhaul and then fixes to the installer #156 2018-01-29 13:16:39 -06:00
public Cleanup the PIREP edit page and add the comments in 2018-01-11 15:07:11 -06:00
resources add zfw field to aircraft 2018-01-30 10:04:50 -06:00
storage fix ignore files 2018-01-04 15:08:32 -06:00
tests Fix tests and extend the source_name field 2018-01-29 20:30:29 -06:00
.gitignore read a config.php file from root #156 2018-01-28 21:05:02 -06:00
.htaccess add the exit() to the env file in a better way, add some more htaccess rules to block the env file 2018-01-09 07:09:16 -06:00
.travis.yml cleanup the travis file 2018-01-20 10:18:42 -05:00
artisan laravel base files 2017-06-08 13:28:26 -05:00
CHANGEFILE Added CHANGELOG 2018-01-01 00:48:39 -06:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-12-09 08:52:43 -06:00
composer.json Update to Laravel 5.5.29 2018-01-23 09:39:52 -06:00
composer.lock Add pirep comments and subfleets fares #118 2018-01-23 21:40:34 -06:00
env.php.example Some more updates to the installer and env file stuff 2018-01-18 21:40:25 -05:00
index.php Changes for shared hosting and numerous installer fixes 2017-12-17 16:58:53 -06:00
LICENSE Initial commit 2017-06-07 18:35:27 -05:00
Makefile Restrict the aircraft to only show the user's #138 2018-01-10 19:40:20 -06:00
package-lock.json Cleanup the PIREP edit page and add the comments in 2018-01-11 15:07:11 -06:00
package.json Add flag-icon-css library 2018-01-09 18:49:15 -06:00
phpunit.xml db cleanup/try phpunit with in-memory tests 2017-12-06 11:25:41 -06:00
Procfile updated travis and dependencies 2018-01-18 20:22:24 -05:00
README.md Fix link to tarball 2018-01-22 21:11:58 -06:00
webpack.mix.js Add flag-icon-css library 2018-01-09 18:49:15 -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.php file.

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

then point your webserver to the /public folder.

By default, the Makefile calls the system-wide composer. If your host requires a certain path or name for composer, add COMPOSER= to the front of the make command, e.g:

COMPOSER=composer.phar make install

development environment

For development, copy the included env.php.example to env.php 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.php.example env.php
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.php 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.

updating

extract files and run the migrations:

php artisan migrate