motine / parts_demo

A little demo how to use un-namespaced parts in Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A little demo how to use un-namespaced parts in Rails


Languages

Language:Ruby 79.4%Language:HTML 19.0%Language:Shell 0.6%Language:Dockerfile 0.5%Language:CSS 0.4%Language:JavaScript 0.2%