A little demo how to use un-namespaced parts in Rails
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
db
doc
lib
log
parts
public
storage
tmp
vendor
.gitignore
.rspec
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
demo.sh

README.md

Rails in Parts

Please read the article.

Docker

We use Docker for running a reproducible development environment across the team's laptops. This means, that all dependencies for the project are installed in a container. We decided move away from Vagrant because of performance and file-syncing issues (and others). Please make sure you have Docker installed.

Workflow

Here a compact overview of things you can do:

# Build the image for the first time:
docker build -t parts/app .

# run the server (for demonstration purposes it will run migrations and seeding):
docker run -p 3000:3000 -v $(pwd):/app parts/app
# run the tests and the linter:
docker run -p 3000:3000 -v $(pwd):/app parts/app rspec
docker run -p 3000:3000 -v $(pwd):/app parts/app rake check:parts

# get a full shell
docker run -p 3000:3000 -v (pwd):/app -ti parts/app -- /bin/bash