This README would normally document whatever steps are necessary to get the application up and running. Things you may want to cover:
| Languages | Version |
|---|---|
ruby '3.0.1' |
|
rails '6.1.4.1' |
|
(PostgreSQL) '13.3' |
|
node (-> 'v14.17.1') |
|
Docker '20.10.7' |
|
Big Sur '11.4 (20F71)' |
git clone git@github.com:Shahidrox/TopScoreRanking.git
cd TopScoreRankingbundle exec rails db:create -e test
bundle exec rails db:migrate -e test
bundle exec rspec
File: TopScoreRanking/spec/requests/api/v1/score_spec.rb| Docker | - setup |
|---|---|
| Image rebuild: | $ docker-compose build |
| Container launch: | $ docker-compose up -d |
| DB create: | $ docker-compose run web rails db:create |
| DB migrate: | $ docker-compose run web rails db:migrate |
| Test: | $ curl 0.0.0.0:3000 |
| CONTAINER LIST: | $ docker container ls |
| CONTAINER STOP: | $ docker stop <container-name> |
| Removing All Unused Docker Objects: | $ docker system prune |
| Swagger Doc | - |
|---|---|
| http://localhost:3000/api-docs/v1/index.html |