Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosk7/colorbuz-server
This is colorbuz application for server.
https://github.com/ryosk7/colorbuz-server
Last synced: about 1 month ago
JSON representation
This is colorbuz application for server.
- Host: GitHub
- URL: https://github.com/ryosk7/colorbuz-server
- Owner: ryosk7
- Created: 2019-08-22T16:28:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T14:28:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T18:38:18.702Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Setup
```
$ docker-compose build
$ docker-compose up
$ docker-compose run web rails db:create
$ docker-compose exec web rails db:migrate
# If your PC is Mac, you can use under command.
$ open http://localhost:8000
```## For starter
```
$ docker-compose build
$ docker-compose up
$ docker-compose run web rails db:create
$ docker-compose exec web rails g scaffold posts
$ docker-compose exec web rails db:migrate
# If your PC is Mac, you can use under command.
$ open http://localhost:8000/posts
```## DB操作
以下に統一すること
```
# 新規にtableを追加する時
$ docker-compose exec web rails g model Sample string:sample
$ docker-compose exec web rails db:migrate# 既存のtableに変更を加える時
# 対象のtableのmigrationファイルに変更を加えて、
$ docker-compose exec web rails db:migrate:reset
```## cURL操作
```
$ curl -X POST http://localhost:8000/posts -d 'post[title]sample&post[content]Hello World!'
```