Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hachi8833/event_manager_shakapacker
https://github.com/hachi8833/event_manager_shakapacker
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hachi8833/event_manager_shakapacker
- Owner: hachi8833
- Created: 2022-05-24T01:56:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-24T02:11:13.000Z (over 2 years ago)
- Last Synced: 2024-11-14T03:48:09.918Z (2 months ago)
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This Docker setup would help you when you learn the following Rails+React tutorial:
* [How to Create a CRUD App with Rails and React · James Hibbard](https://hibbard.eu/rails-react-crud-app/)
The setup assumes you use **Shakapacker** for bundling React.
## Requirement
The followings are required on your local environment.
* Docker and Docker Compose
* dip[![bibendi/dip - GitHub](https://gh-card.dev/repos/bibendi/dip.svg)](https://github.com/bibendi/dip)
```sh
# to install dip in your environment
gem install dip
```Ref: [Ruby on Whales: Dockerizing Ruby and Rails development — Martian Chronicles, Evil Martians’ team blog](https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development)
## Setup
Just perform the following on the root of the project. Answer 'y' when you see the prompt if Gemfile is overridden.
```sh
dip provision
```Then you can start the tutorial from the part of updating package.json in "Creating a New Rails App"/"Shakapacker",
## FYI
You can start Rails server by:
```sh
dip rails s
```You can stop the Rails server with Ctrl-C.
You can see the list of all available dip commands by:
```sh
dip ls
```You can prefix `dip` to the `rails`, `bundle`, or `npm` commands for shorthands, like:
```sh
# example
dip npm i prop-types
``````sh
# example
dip bundle install
``````sh
# example
dip rails about
```(You don't need to prefix `dip` to shell commands such as `touch` or `mkdir`)