Fluxtream is based on Spring(-MVC) 3.1, Spring Security 3.1 and JPA for the persistence. We use Jersey (JAX-WS) for exposing the REST API
This is a maven project with 5 sub-modules.
- core: mainly domain classes, persistence, services and support classes for the other modules (e.g. connectors)
- core-webapp: the web API (with Rest-WS annotations), base oauth classes and helper classes
- connectors: lots of them - but for all but the 10 connectors that are actually enabled, there is little more than basic authentication (sometimes even nothing)
- fluxtream-webapp: the web application you can see on fluxtream.com - in maintenance mode
- fluxtream-web: a new web application that we are starting to work on, based on twitter bootstrap
- you will need maven 3.x.x
- for interactive development, we use Eclipse Indigo with EE support (/WTP)
- start by running the install script in fluxtream-app's maven directory, which will install missing dependencies in your local maven repository
mvn installin fluxtream-app
- We use JRebel during development, which works perfectly well for this application. Since we are open source, you should be able to use jrebel "social" thus without having to pay a license
- Tomcat 7 or Jetty 7
xxxin property files under
src/main/resources/sampleswith appropriate values (you need only provide oauth keys for the connectors you want to use, obviously); put files under
- You need to set a global environment variable at the OS level of your system, named
TARGET_ENV; use that value for the name of your environment-specific properties; i.e. if TARGET_ENV is set to 'local', create an environment-specific property file called
- The database is going to be generated for you automatically; all you need to do is set the database name, username and password in your environment-specific property file (e.g.
- We are using MaxMind's GeoLiteCity.dat database to map IP addresses to an approximate geolocation; you need to specify that file's location in your environment-specific property file, too (e.g.
JETTY_ROOTthere is a
webapps/directory; either drop the
fluxtream-webapp/target/ROOT.warthere or, or create a symbolic version there pointing to
- Run tomcat: under
- Do the following only once: when the welcome (/login) screen has appeared it means the application is fully initialized and so should the mysql database; it is now time to import the cities1000.sql at the root of the fluxtream-app project. A simple way to do this is using the command-line:
mysql -u username -ppassword flx <cities1000.sql
- During development, and if you want to use JRebel (you should), create a symbolic link to the
target/ROOTdirectory of the webapp module in Tomcat's or Jetty's
- Set some Java options for Tomcat to run happily (
bin/catalina.sh) export JAVA_OPTS="-XX:MaxPermSize=256m -Xms256m -Xmx2048m -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8 $JAVA_OPTS"
Copyright 2011-2012 The BodyTrack Team @ CMU CREATE Lab & Candide Kemmler
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.