Ilya Konanykhin
3c521eba15
|
8 years ago | |
---|---|---|
app | 8 years ago | |
config | 8 years ago | |
db | 11 years ago | |
doc | 9 years ago | |
lib | 12 years ago | |
log | 12 years ago | |
public | 9 years ago | |
script | 12 years ago | |
spec | 9 years ago | |
vendor | 12 years ago | |
.gitignore | 8 years ago | |
.powrc | 8 years ago | |
.rspec | 11 years ago | |
.ruby-gemset | 11 years ago | |
.ruby-version | 9 years ago | |
Dockerfile | 9 years ago | |
Gemfile | 8 years ago | |
Gemfile.lock | 8 years ago | |
Guardfile | 12 years ago | |
README.md | 9 years ago | |
Rakefile | 12 years ago | |
config.ru | 12 years ago | |
docker-compose.yml | 9 years ago | |
install_extjs.rb | 9 years ago | |
install_famfamfam.rb | 9 years ago |
README.md
About
A web application for bicycle collectives to track bicycles, bicycle work history, volunteer hours, volunteer work history, and volunteers currently in the shop.
See a live demo here: http://bikeshed.wvcompletestreets.org/ Thanks @fspc for setting that up!
See an overview video of what the desktop view looks like and how it works here: https://www.youtube.com/watch?v=0-JjM6d9nK4.
Overview/Instructions/Guides
See guides
Developer Setup
Running with Docker (recommended)
- These instructions haven't been tested, please provide corrections!
- Install Docker Toolbox https://www.docker.com/toolbox
- Make sure you have a machine running:
docker-machine start default && eval "$(docker-machine env default)"
- Execute
docker-compose build
- Execute
docker-compose run web rake db:create db:migrate db:seed
- Execute
docker-compose up
- If using Docker Toolbox, use
docker-machine ip default
to get the IP where the server is running. - Test the Rails server is running with by visiting
<INSERT IP>:8080
in your browser.
Alternative Dockerfile
See https://github.com/fspc/bikeshed for an alternative docker setup.
Developer Workflow
The project directory should already be mounted inside the container, so you should be able to make live changes. However, since the project is running in the 'web' container, you need to prepend commands with docker-compose run web
.
You'll likely want to add the following aliases:
alias dm='docker-machine'
alias dc='docker-compose'
alias dcrw='docker-compose run web'
That way your commands can be shortened to:
dcrw rake routes
dcrw rails console
dcrw rspec
If there's a better way, I'm all ears. Alternatively you could ssh into the machine with dcrw bash
.
License
Velocipede is released under the MIT license (http://opensource.org/licenses/MIT)