Go to file
Nabeel Shahzad ee8cb7e9e0 oops
2017-06-20 15:06:34 -05:00
.idea run configs for intellij 2017-06-20 10:12:31 -05:00
app #12 #16 settings service and timezone/currency setting 2017-06-20 15:03:51 -05:00
bootstrap laravel base files 2017-06-08 13:28:26 -05:00
config oops 2017-06-20 15:06:34 -05:00
database #12 #16 settings service and timezone/currency setting 2017-06-20 15:03:51 -05:00
public #13 show airport map on details page with aerodome info 2017-06-15 22:45:25 -05:00
resources #14 associate/disassociate aircraft from flights 2017-06-20 12:14:10 -05:00
routes #14 initial scaffolding for adding flights/schedules 2017-06-17 17:25:36 -05:00
storage #12 #16 settings service and timezone/currency setting 2017-06-20 15:03:51 -05:00
tests Rename 'Airlines' model to 'Airline' 2017-06-19 11:50:25 -05:00
.editorconfig initial files 2017-06-07 18:43:25 -05:00
.env.example add airports table and #7 integrate permissions 2017-06-11 11:36:16 -05:00
.env.travis more fixes for travis 2017-06-08 22:50:22 -05:00
.gitignore intellij project files 2017-06-20 10:11:28 -05:00
.travis.yml fix for travis 2017-06-11 11:42:29 -05: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
composer.json #12 #16 settings service and timezone/currency setting 2017-06-20 15:03:51 -05:00
composer.lock #12 #16 settings service and timezone/currency setting 2017-06-20 15:03:51 -05:00
Dockerfile initial files 2017-06-07 18:43:25 -05:00
gulpfile.js laravel base files 2017-06-08 13:28:26 -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 Fix unittests 2017-06-13 19:53:02 -05:00
package-lock.json commit package-lock.json 2017-06-11 17:45:48 -05:00
package.json laravel base files 2017-06-08 13:28:26 -05:00
phpunit.xml some refactoring for tests and adding some tables 2017-06-09 22:19:17 -05:00
phpvms.iml intellij project files 2017-06-20 10:11:28 -05:00
Procfile #11 some more organization around the aircraft 2017-06-14 09:39:02 -05:00
README.md include vagrant and update README 2017-06-13 12:50:03 -05: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 4

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, and skip the sqlite3 step below.

cp .env.example .env
composer install --no-interaction
php artisan optimize
sqlite3 database/testing.sqlite ""
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.

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