University project for PEPIT
# OOnoz
####TravisCI: Linux/OSX builds
Master: [](https://travis-ci.org/LeCoinEnBande/OOnoz) | Development: [](https://travis-ci.org/LeCoinEnBande/OOnoz)
[](https://bob-bench.org/r/gh/LeCoinEnBande/OOnoz)
####Windows builds
Master: [](https://ci.appveyor.com/project/jecisc/OOnoz/branch/master) | Latest commit: [](https://ci.appveyor.com/project/jecisc/OOnoz)
#### JenkinsCI
Master And Development: [](https://ci.inria.fr/pharo-contribution/job/OOnoz/)
#### Coverage:
[](https://coveralls.io/github/LeCoinEnBande/OOnoz?branch=master)
University project for PEPIT
# Documentation
## Launching a Server
To launch a server you first need to initialize a configuration. The configuration has some parameters. Here is the list:
- `port`: The application port. By default: 8080
- `staticServerPort`: The static file serves port. By default: 1701
- `resourcesDirectoryPath`: The path to the folder containing the resources of the application relative to the image location. By default: '../../GitRepositories/OOnoz/Resources'
- `domainName`: The domain name used for the static file server. By default: 'localhost'
### Example of configuration file
Configuration {
#parameters : {
'staticServerPort' : 1701,
'resourcesDirectoryPath' : '../../GitRepositories/OOnoz/Resources',
'port' : 8080,
'domainName' : 'localhost'
}
}
To set the configuration to the server you can execute the following script with the right path to a configuration file:
OOServer setConfigurationFromFile: '../../GitRepositories/OOnoz/configuration.ston'
**If you use all the default values you can just execute:**
OOServer setConfigurationWith: OOConfiguration new
## Development helpers
To help with the development the project contains some developers features.
Those features contains for example:
* Activation of the in-image debugger: `OODevHelper useInImageDebugger`
* Installation of GitFileTree: `OODevHelper installGitFileTree`
* Launch in memory voyage backend for development database and create a user with mcqs: `OODevHelper setupMemoryDB`
* Get an instance of MCQ: `OODevHelper testingMCQInstance`
* Install new branch: `OODevHelper installNewBranch: 'myBranch'`
* Launch OOnoz with the default configuration: `OODevHelper defaultServerLaunching`
* Set Lille 1 proxy: `OODevHelper setLille1Proxy`
* Remove the proxy: `OODevHelper removeProxy`
To keep:
location / {
try_files $uri $uri/index.html @proxy;
}
location @proxy {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:7850;
}