Skip to content

sjockers/teikei

 
 

Repository files navigation

Build StatusCode ClimateDependency StatusCoverage Status

Teikei

Teikei is the software that powers Ernte teilen, a website that maps out Community Supported Agriculture in Germany.

Ernte teilen

Getting started

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.

Settings

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.

External dependencies (package managers)

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.

Installing/updating dependencies:

  1. Run bundle install (installs Ruby dependencies)
  2. Run npm install (installs client-side dependencies)

Test data

  • 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.

Roadmap

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.

Known issues

  • On Ubuntu there might be an issue running bundle install. There is a dependency for libcrypto.so.0.9.8. To circumvend the problem install libssl0.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.

Authors & contributors

License

About

teikei master repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 49.3%
  • JavaScript 21.9%
  • CSS 17.7%
  • HTML 11.1%