https://github.com/raoul2000/cam-browser2
https://github.com/raoul2000/cam-browser2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raoul2000/cam-browser2
- Owner: raoul2000
- License: other
- Created: 2016-08-07T11:16:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T07:25:56.000Z (over 8 years ago)
- Last Synced: 2025-02-09T01:48:23.372Z (4 months ago)
- Language: PHP
- Size: 173 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
This is a work in progress
File browser built on top of [Flysystem](https://flysystem.thephpleague.com/).
# Install
```
git clone https://github.com/raoul2000/cam-browser2.git
cd cam-browser2
composer install
```# Testing
The `tests\codeception` directory contains various tests for the basic application. These tests are developed with [Codeception PHP Testing Framework](http://codeception.com/).
After creating the basic application, follow these steps to prepare for the tests:
## Using the *vendor* Codeception
When you install the application, the *codeception* dependency is included so you just have to navigate to the `tests` subfolder and run :
1. Install and start the local FTP server:
```
npm install
npm start
```2. Build and run tests
```
..\vendor\bin\codecept build
..\vendor\bin\codecept run unit
```## Install Codeception globally
Another option is to install Codeception globally.
1. Install Codeception if it's not yet installed:
```
composer global require "codeception/codeception=2.0.*"
composer global require "codeception/specify=*"
composer global require "codeception/verify=*"
```If you've never used Composer for global packages run `composer global status`. It should output:
```
Changed current directory to
```Then add `/vendor/bin` to you `PATH` environment variable. Now we're able to use `codecept` from command
line globally.2. Build the test suites:
```
codecept build
```
4. Install and start the local FTP server:```
npm install
npm start
```3. Now you can run the tests with the following commands:
```
# run unit tests
codecept run unit
```Please refer to [Codeception tutorial](http://codeception.com/docs/01-Introduction) for
more details about writing and running acceptance, functional and unit tests.