Teikei is the software that powers Ernte teilen, a website that maps out Community Supported Agriculture in Germany.
The framework consists of two components: the API back-end and the front-end. The back-end is based on Ruby on Rails. Data is exchanged as JSON. The front-end is built with the help of Marionette.js and Backbone.js. The website is designed to work as a single-page-application, at least for the major parts of the interface.
You need to create an .env
file which contains the environment variables needed to run the project. The included .env.sample
file lists the variables which need to be set.
Unlike most classic Rails projects, this application uses separate package management for its client-side dependencies. In order to build the front-end of this application, you will need [npm][npm] (part of node.js) in addition to Bundler. NPM will install all external client-side packages into the node_modules
folder.
- Run
bundle install
(installs Ruby dependencies) - Run
npm install
(installs client-side dependencies)
- A superadmin account can be generated by running
rake db:seed
. - Test data in general (users, farms, depots, faqs) can be generated by running
rake db:seed:generate
. - The task
rake db:seed:all
runs both tasks mentioned before.
We use the GitHub issue tracker to plan upcoming features and track our bugs. If you want to participate, it's probably a good idea to look for open issues there. Before working on bigger features, however, it's advisable to get in contact with us, so that we can coordinate progress a little.
- On Ubuntu there might be an issue running
bundle install
. There is a dependency forlibcrypto.so.0.9.8
. To circumvend the problem installlibssl0.9.8
. - Because of an issue with Backbone/Marionette, the project is currently not compatible with npm3. It's recommended to use node version 4.2.6, which is the latest version that included npm2.
- The Teikei source code is released under the AGPL 3.0
- Assets in this repository are released under the Attribution-ShareAlike 4.0 International CC license