Skip to content
No description, website, or topics provided.
PHP Shell TSQL Makefile Python CSS HTML
Branch: master
Clone or download
Latest commit 26be5da Jul 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github feat: add PR template (#56) May 20, 2019
app fix typo Jul 25, 2019
backup
debug Add a unit test script Apr 11, 2019
doc
install_app Init 0.0.11 (#107) Jul 2, 2019
mysql New version (#114) Jul 25, 2019
scripts Merge 0.0.10 to master (#105) Jun 26, 2019
tests
.env_dev improve make installation process May 15, 2019
.env_sample Get_photo / add access for all (#58) May 24, 2019
.env_unittest improve make installation process May 15, 2019
.gitignore create version.txt May 15, 2019
.travis.yml Merge 0.0.10 to master (#105) Jun 26, 2019
COPYING
Makefile Merge 0.0.10 to master (#105) Jun 26, 2019
README.md refacto: e2e test inside testApp.sh (#55) May 20, 2019
docker-compose.yml
phpunit.xml Add get_issues unit test Apr 25, 2019
requirements.txt Add a unit test script Apr 11, 2019

README.md

Vigilo Backend Build Status

REST API to manage observations of the Vigilo app.

Documentation can be found here.

Development Quick Start

# Start server with 10 observations
make install-with-data

# verify you can get all observations http://localhost/get_issues.php

Test

Unit test

# PHP unittest with mysql server
make ENV=unittest stop clean init-db start unittest

Functional test - shunit2

# make install-with-data (required)
make test-webserver

Test library : https://github.com/kward/shunit2/

Tools

# List all available commands
make

# Start server with data
make install-with-data

# PHP unittest without mysql server
make unittest

# PHP unittest with mysql server
make ENV=unittest stop clean init-db start unittest

# Test application with cleaned database
make ENV=dev SCOPE=montpellier stop clean init-db start test-webserver show-db

# Start server with backuped database
#make backup-db DBSERVER=192.168.0.1
make SCOPE=montpellier BKDATE=20190412233147 stop clean restore-db start show-db

# Startserver with backuped bundle
#make backup-bundle DBSERVER=192.168.0.1
make SCOPE=montpellier BKDATE=20190412233147 stop clean restore-bundle start show-db
You can’t perform that action at this time.