Commit 7cf7fbaf authored by John Noel's avatar John Noel

Updated README.md

parent c78fd29f
......@@ -11,7 +11,7 @@ git clone https://gitlab.discs.ateneo.edu/mis-21-2018-intersession/1-getting-sta
```
**Note**: You can replace the name of the project e.g. ``sample_app`` to any preferred project name.
* Go inside the cloned repository
* Go inside the cloned repository.
```bash
cd sample_app
......@@ -23,21 +23,21 @@ cd sample_app
chmod +x start
```
* Make sure to re-initialize own Git repository
* Make sure to re-initialize own Git repository.
```bash
rm -rf .git
git init
```
* Run this command to identify the current directory
* Run this command to identify the current directory.
```bash
pwd
```
**Note**: Take note of the output of this command. This shall serve as an input value to the next commands.
* Build and start Docker containers
* Build and start Docker containers.
```bash
docker-compose build
......@@ -56,26 +56,36 @@ sample_app_web_1 exited with code 0
cd <command output of the previous pwd command>
```
* Stop Docker containers
* Stop Docker containers.
```bash
docker-compose down
```
* Create a new Rails project
* Create a new Rails project.
```bash
docker-compose run web rails new . --force --database=postgresql
```
**Notes**: You can remove ``--database=postgresql`` if a different database engine will be used.
**Notes**:
- You can remove ``--database=postgresql`` if a different database engine will be used.
- This will take a while. Proceed with the next step ONLY after a similar message shows up.
* In one of the two opened Terminal (Mac/Unix) / Powershell (Windows), start again Docker containers
```bash
Bundle complete! 18 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
run bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
```
* In one of the two opened Terminal (Mac/Unix) / Powershell (Windows), start again Docker containers.
```bash
docker-compose up
```
* Edit ``config/database.yml``
* Edit ``config/database.yml``.
```bash
default: &default
......@@ -101,7 +111,7 @@ production:
password: <%= ENV['RAILS_DATABASE_PASSWORD'] %>
```
* Create the ``development`` and ``test`` databases
* Create the ``development`` and ``test`` databases.
```bash
docker-compose run web rails db:create
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment