OOnoz

Description

University project for PEPIT

Details

Source
GitHub
Dialect
pharo (40% confidence)
License
MIT
Stars
2
Forks
1
Created
Sept. 15, 2016
Updated
Aug. 25, 2025
Topics
pharo seaside smalltalk university web-app

Categories

Web

README excerpt

# OOnoz


####TravisCI: Linux/OSX builds
Master: [![Build Status](https://travis-ci.org/LeCoinEnBande/OOnoz.svg?branch=master)](https://travis-ci.org/LeCoinEnBande/OOnoz) | Development: [![Build Status](https://travis-ci.org/LeCoinEnBande/OOnoz.svg?branch=development)](https://travis-ci.org/LeCoinEnBande/OOnoz)

[![Test Status](https://api.bob-bench.org/v1/badgeByUrl?branch=development&hosting=github&ci=travis-ci&repo=LeCoinEnBande%2FOOnoz)](https://bob-bench.org/r/gh/LeCoinEnBande/OOnoz)

####Windows builds
Master: [![Build status](https://ci.appveyor.com/api/projects/status/bjheqaf3kvxfjk8w/branch/master?svg=true)](https://ci.appveyor.com/project/jecisc/OOnoz/branch/master) | Latest commit: [![Build status](https://ci.appveyor.com/api/projects/status/bjheqaf3kvxfjk8w?svg=true)](https://ci.appveyor.com/project/jecisc/OOnoz)

#### JenkinsCI
Master And Development: [![Build Status](https://ci.inria.fr/pharo-contribution/buildStatus/icon?job=OOnoz)](https://ci.inria.fr/pharo-contribution/job/OOnoz/)

#### Coverage: 
[![Coverage Status](https://coveralls.io/repos/github/LeCoinEnBande/OOnoz/badge.svg?branch=master)](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;
   }
← Back to results