Skip to content

Commit 5225545

Browse files
authored
Update instructions
1 parent cad5ca3 commit 5225545

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# README
22

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
3+
Learn how to use docker / docker compose to create and run rails application.
54

6-
Things you may want to cover:
5+
Episode video link
76

8-
* Ruby version
7+
## Tested on
98

10-
* System dependencies
9+
* Mac OSX - 10.10.5
10+
* Docker - 1.12.1
11+
* Docker compose - 1.8.0
1112

12-
* Configuration
13+
## Instructions / commands
1314

14-
* Database creation
15+
```
16+
mkdir ~/projects/noteapp
17+
# Create Gemfile
18+
# Create Dockerfile
19+
# Create docker-compose.yml
20+
docker-compose run app rails new . --force --database=mysql --skip-bundle
21+
docker-compose build
22+
docker-compose up
23+
# http://localhost:3001
24+
docker-compose run --rm app rails g scaffold note title body:text
25+
docker-compose run --rm app rake db:migrate
26+
# http://localhost:3001/notes
27+
```
1528

16-
* Database initialization
1729

18-
* How to run the test suite
19-
20-
* Services (job queues, cache servers, search engines, etc.)
21-
22-
* Deployment instructions
23-
24-
* ...

0 commit comments

Comments
 (0)