Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 3.21 KB

README.md

File metadata and controls

76 lines (51 loc) · 3.21 KB

OOnoz

####TravisCI: Linux/OSX builds Master: Build Status | Development: Build Status

Test Status

####Windows builds Master: Build status | Latest commit: Build status

JenkinsCI

Master And Development: Build Status

Coverage:

Coverage Status

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; }