https://github.com/zdavatz/steinwies.ch
Steinwies.ch
https://github.com/zdavatz/steinwies.ch
Last synced: about 1 year ago
JSON representation
Steinwies.ch
- Host: GitHub
- URL: https://github.com/zdavatz/steinwies.ch
- Owner: zdavatz
- License: gpl-3.0
- Created: 2016-09-06T14:27:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T10:01:07.000Z (over 9 years ago)
- Last Synced: 2025-03-01T07:23:04.716Z (over 1 year ago)
- Language: Ruby
- Size: 6.14 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.txt
- License: LICENSE
Awesome Lists containing this project
README
# steinwies.ch
* [steinwies.ch](http://steinwies.ch/)
* https://github.com/zdavatz/steinwies.ch (source)
## Setup
### Requirements
* Ruby, `>= 2.3.1`
* Apache2 with a ProxyPass
* cronolog (optional)
* daemontools (for davazd, yusd)
### Install
```zsh
: Ruby and Rubygems
: check your ruby version
% ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
% echo 'gem: --no-ri --no-rdoc' > ~/.gemrc
% cd /path/to/steinwies.ch
% bundle install --path vendor
```
### Configuration
Use sample files in `etc` directory.
```zsh
: Application conf (edit for your credentials)
% cp etc/config.yml.sample etc/config.yml
: Apache2 conf
% cp etc/steinwies.ch.conf.sample /etc/apache2/vhosts.d/steinwies.ch.conf
```
And then, boot application server as `bundle exec ./bin/steinwies`.
## Test
### Dependencies
* Ruby (for the used gems see the Gemfile)
* Selenium/Watir/geckodriver for spec test (see .travis.yml for setup)
### Setup
```zsh
% git clone https://github.com/zdavatz/steinwies.ch.git
% cd steinwies.ch
### How to run
#### Test suite
We have unit test which use rack-test
`bundle exec rake test`
And we have some spec test, which spawn the Steinwies Rack and DRB servers on port 11080 and 11081 for localhost.
Then we execute some simple access.
`bundle exec rake test`
#### Single feature test
`bundle exec test/feature/kontakt_test.rb --name test_kontakt_submit_kontakt`
Or for a single spec test:
`bundle exec rspec spec/homepage_spec.rb:25`
### Running:
You must start the DRB server process and the Rack-Webserver in two seperate threads using
* `bundle exec bin/steinwies`
* `bundle exec rackup`
## Open problems
* Submitting the form does not work see test_kontakt_submit_kontakt
* Combine logging of apache and running Ruby processes?
## License
Copyright (C) 2006-2016 ywesee GmbH.
This is free software;
You can redistribute it and/or modify it under the terms of the GNU General Public License (GPL v3.0).
See `LICENSE`.