Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosk7/sapphire
勉強用webサービス
https://github.com/ryosk7/sapphire
Last synced: about 2 months ago
JSON representation
勉強用webサービス
- Host: GitHub
- URL: https://github.com/ryosk7/sapphire
- Owner: ryosk7
- Created: 2019-09-03T18:03:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T14:39:02.000Z (about 2 years ago)
- Last Synced: 2024-10-18T19:54:42.105Z (3 months ago)
- Language: Ruby
- Size: 1.13 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sapphire
勉強用Webアプリケーション
## 仕様
- Docker
- docker-compose
- Ruby
- Rails
- Nuxt
- mysql
## Setup
```sh
$ docker-compose run --rm back rails db:create
$ docker-compose run --rm back rails db:migrate
$ docker-compose up# attach
$ docker attach sapphire_back
$ docker attach sapphire_front
```
## API 解放PORT
- front: 8080
- back: 3000
## cURL sample
```
$ curl http://localhost:3000/users# new
$ curl -X POST http://localhost:3000/users -d 'user[name]=test'
```
## docker参考元
- https://qiita.com/at-946/items/08de3c9d7611f62b1894