Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raitraidma/pgapex
APEX for ProstgreSQL
https://github.com/raitraidma/pgapex
apex php plpgsql postgres postgresql vagrant
Last synced: about 2 months ago
JSON representation
APEX for ProstgreSQL
- Host: GitHub
- URL: https://github.com/raitraidma/pgapex
- Owner: raitraidma
- License: mit
- Created: 2016-02-24T21:24:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T01:17:10.000Z (almost 3 years ago)
- Last Synced: 2023-03-01T18:33:08.135Z (almost 2 years ago)
- Topics: apex, php, plpgsql, postgres, postgresql, vagrant
- Language: JavaScript
- Homepage:
- Size: 4.66 MB
- Stars: 0
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![CI build](https://travis-ci.org/raitraidma/pgapex.svg)
pgApex
======pgApex requirements
------------------
* Postgresql 9.4
* PHP 5.5Prerequisites
-------------
* Install Oracle VirtualBox 5.0.16 or greater (https://www.virtualbox.org/wiki/Downloads)
* Install Vagrant 1.8.1 or greater (https://www.vagrantup.com/downloads.html)
* Install Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)Windows host (vagrant < 1.7.3)
------------------------------
To enable longer paths than 260 chars:
* Open C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.2\plugins\providers\virtualbox\driver\version_4_3.rb
(Path may vary)
* Find method 'share_folders' (lines 495-510)
* Relpace:
`folder[:hostpath]]`
with
`'\\\\?\\' + folder[:hostpath].gsub(/[\/\\]/,'\\')]`Start VM
--------
* Open command line as Administrator
* Go to the folder where is Vagrantfile
* Run command: `vagrant up`Access VM
---------
* Log into the VM, open Putty
* Host name: localhost
* Port: 2222
* Press Open button
* Username: vagrant
* Password: vagrantShared folder is in /vagrant directory:
`cd /vagrant`Deploy db evolutions
--------------------
* Execute deploy script: `/vagrant/db_evolutions.sh`Access UI
---------
http://localhost:8000Stop VM
-------
* Open command line
* Go to the folder where is Vagrantfile
* Run command: `vagrant halt`Run tests in VM
---------------
* Go to /vagrant folder: `cd /vagrant`
* Run js tests once: `npm run test-single-run`
* Run js tests when code changes: `npm run test`
* Run php tests: `composer test`CI
--
* https://travis-ci.org/
* `deploy.sh` (`SERVER_PASSWORD`, `SERVER_USER_HOST`, `DB_PASSWORD`, `DB_USER` and `DB_DATABASE` are variables defined in repository settings)Demo
----
* http://apex.ttu.ee/t143682/pgapex