ryosk7 / angular_rails_todo_app

todo application rails 5 api and angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

first setup

git clone & move files

$ git clone git@github.com:ryosk7/rails_on_docker_seed.git
$ mv ./rails_on_docker_seed/* ./
$ mv ./rails_on_docker_seed/.* ./
$ rm -rf rails_on_docker_seed
$ rm -rf .git
$ git init
# If you want to use commit template, you can use this. (This commit template is written in Japanese.)
$ git config --local commit.template ./.commit_template
$ docker-compose build
$ docker-compose run back rails new . -d mysql -T

You should edit database.yml

Like this!

- username: root
- password:
- host: localhost
+ username: root
+ password: root
+ host: db

Run Rails server

$ docker-compose build
$ docker-compose run back rails db:create
$ docker-compose down
$ docker-compose up -d
$ docker-compose attach rails_server

About

todo application rails 5 api and angular


Languages

Language:Ruby 54.6%Language:TypeScript 21.2%Language:HTML 14.2%Language:JavaScript 5.2%Language:CSS 4.0%Language:Dockerfile 0.4%Language:CoffeeScript 0.4%