https://github.com/rinminase/rails-test-app
https://github.com/rinminase/rails-test-app
docker postgresql rails ruby sample-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rinminase/rails-test-app
- Owner: RinMinase
- Created: 2019-11-27T06:23:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-20T08:58:42.000Z (over 6 years ago)
- Last Synced: 2024-12-27T18:31:12.778Z (over 1 year ago)
- Topics: docker, postgresql, rails, ruby, sample-app
- Language: Ruby
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ruby on Rails Test Application
## Introduction
_Add info here_
## Getting Started
### Running the project
1. If you are running Windows 10, [download](https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe) and install `Docker for Windows`.
**Note:** If you're not running Windows 10, use `Docker Toolbox` instead, [download](https://docs.docker.com/toolbox/toolbox_install_windows/#step-2-install-docker-toolbox) and install it. Also make sure that you are also running [vitualization](https://docs.docker.com/toolbox/toolbox_install_windows/#step-1-check-your-version).
2. Clone the project
```
git clone https://github.com/RinMinase/rails-test-app.git
cd rails-test-app
```
3. Build the necessary docker containers
```
docker-compose run web rails new . --force --no-deps --database=postgresql
docker-compose build
```
3. Run the created docker containers
```
docker-compose up -d
docker-compose run web rake db:create
```
4. Fire up your browser and go to `localhost:3000`.
**Note:** If you are using `Docker Toolbox` instead of `Docker`, go to `192.168.99.100:3000` instead.
**Note:**
In case you need to remove the images
From the project folder, run:
1. `docker-compose down`
2. `docker images`
3. Look for the IDs of `rails-test-app_web_1`, `rails-test-app_db_1`
4. Run `docker rmi ...`
### Re-running the project
1. Make sure `Docker` is running, then open your terminal.
**Note:** If you are running `Docker Toolbox`, then open the docker terminal.
2. Navigate to the project foler then run `docker-compose up -d`
3. Fire up your browser and go to `localhost:3000`.
**Note:** If you are using `Docker Toolbox` instead of `Docker`, go to `192.168.99.100:3000` instead.
### Project Structure
.
├── ... # Template
└── ... # Template
### Testing the project
_Add info here_
## Built with
*
[Rails 5.2](hhttps://rubyonrails.org/) - Web Framework
*
[Ruby 2.5](https://www.ruby-lang.org/) - Language syntax
*
[PostgreSQL](https://www.postgresql.org/) - Database
*
[Docker](https://www.docker.com/) - Container platform
## Deployed to