Server providing the actual OpenJUB API
- Node.JS + npm
- MongoDB
-
Install MongoDB and Node.JS
-
Run:
$ git clone [email protected]/openjub/openjub-api.git
$ cd openjub-api
$ npm install -g grunt grunt-cli express bower
$ npm install
$ bower install
$ cp _settings.json settings.json # change config if necessary
$ ./lib/sync -s # updates data from LDAP and re-parses old entries
Run the following two commands to start the server in two different folders
$ mongod # start in separate tab or as daemon
$ node index.js # server runs on default port 6969
Run and start server afterwards:
$ grunt docs
Navigate with your browser to: http://localhost:6969/docs
or http://localhost:6969/api
- added the
isResearcher
andisAdmin
fields
- update the sign-in dialog
- redo session management and authentication
- added some indexes for performance
- added an informational text about cookie usage.
- changes to the sync script
- moved from 'tasks/sync' to 'lib/sync'
- now gives a lot more warnings when stuff in the database is not the way its supposed to be
- now optionally reads password from config file
- better syncronisation behaviour
- can now re-parse old entries and mark them as inactive.
- can now sync with ldap or with file
- can dump the entire database to a file.
- slight change to how requests with multiple results are handled
- now returns a "count" parameter that counts the number of results
- the
prev
andnext
parameters returnfalse
whenever the resulting url does not make sense
- rewrote query syntax Parser
- more flexible
- supports auto-completion now
- cleanup of phone room mapping
- now internally stored on a per-building basis
- uses data from LDAP if available
- automatically renewed when needed
- rename of main script
- now called
index.js
(instead ofserver.js
)
- now called
- more code cleanup:
- performance improvements by querying mongodb with several queries at once
- code seperation between REST parsing and handling of queries
- complete code cleanup
- documentation
- actually not really versioned
- initial release
- Tom Wiesing [email protected]
- Dominik Kundel [email protected]
- Dmitrii Cuclescin [email protected]