{"id":14955470,"url":"https://github.com/samuraikun/rails-nuxt-typescript-docker-example","last_synced_at":"2025-09-30T13:31:05.853Z","repository":{"id":37723888,"uuid":"190754608","full_name":"samuraikun/rails-nuxt-typescript-docker-example","owner":"samuraikun","description":"An example app built on Ruby on Rails + Nuxt.js + TypeScript + Docker Compose","archived":false,"fork":false,"pushed_at":"2023-01-19T13:21:25.000Z","size":1286,"stargazers_count":3,"open_issues_count":32,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T11:20:51.913Z","etag":null,"topics":["docker","docker-compose","nuxtjs","postgresql","rails6","typescript","yarn"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuraikun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-07T14:12:17.000Z","updated_at":"2023-05-04T08:43:53.000Z","dependencies_parsed_at":"2023-01-28T20:00:48.066Z","dependency_job_id":null,"html_url":"https://github.com/samuraikun/rails-nuxt-typescript-docker-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuraikun%2Frails-nuxt-typescript-docker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuraikun%2Frails-nuxt-typescript-docker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuraikun%2Frails-nuxt-typescript-docker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuraikun%2Frails-nuxt-typescript-docker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuraikun","download_url":"https://codeload.github.com/samuraikun/rails-nuxt-typescript-docker-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234737856,"owners_count":18879180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","nuxtjs","postgresql","rails6","typescript","yarn"],"created_at":"2024-09-24T13:11:12.205Z","updated_at":"2025-09-30T13:31:00.476Z","avatar_url":"https://github.com/samuraikun.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Inspired by https://github.com/ohbarye/rails-react-typescript-docker-example\n\n## TL;DR\n\n**Here is an example application with the following modern web technology stacks. With this boilerplate, you can easily start to build your own app.**\n\n- [Ruby](https://www.ruby-lang.org/en/) 2.7.2\n- [Rails](https://rubyonrails.org/) (API mode) 6.1.0\n- [Nuxt.js](https://nuxtjs.org/) 2.8.1\n- [TypeScript](https://www.typescriptlang.org/) 3.5.1\n- [Docker](https://docs.docker.com/)\n- [PostgreSQL](https://www.postgresql.org/)\n\n## Usage\n\n### `.env`\n\n```\nPOSTGRES_USERNAME=postgres\nPOSTGRES_PASSWORD=xxxxxx\n```\n\n### Run localhost\n\n```shell\n$ git clone https://github.com/samuraikun/rails-nuxt-typescript-docker-example.git \u0026\u0026 cd rails-nuxt-typescript-docker-example\n\n# Setup\n$ docker-compose build\n\n// Gemfileを変更した場合\n$ docker-compose run web bundle install\n$ cd frontend \u0026\u0026 yarn install\n$ docker-compose run backend bin/rails db:create\n\n# Start\n$ docker-compose up -d\n\n$ // Rails\n$ open http://localhost:8000\n$ // Nuxt\n$ cd frontend \u0026\u0026 yarn run dev\n$ open http://localhost:4000\n```\n\n#### Gemfileを変更した場合 or docker-compose up後、gemが見つからないというエラーの場合\n- `docker-compose run web bundle install` を実行\n    - https://qiita.com/hokita222/items/49f4ca54835e08fdd6b2\n\n## Motivation\n\nNowadays, I feel like **we need a wide range acknowledgment on web development even if we call ourselves \"backend developer\" or \"frontend developer\".**\n\n\nThe SPA, Of course, has a backend API, Ruby on Rails connecting PostgreSQL in my case. I use Docker Compose for defining and running multi-container Docker applications because it's not much simple to bootstrap all of applications and middlewares.\n\n**Learning each technology itself is not a burden. I rather like learning. But I've thought I'd like to pursue my playground whose tech stacks are virtually same as ones I develop in work.**\n\n\n## Further Details\n\n### Backend\n\nThe combination, Rails + PostgreSQL + Docker Compose, is just a result I followed [Docker Compose's official instruction](https://docs.docker.com/compose/rails/).\n\n### Frontend\n\nBootstrapped with [create-nuxt-app](https://github.com/nuxt/create-nuxt-app).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuraikun%2Frails-nuxt-typescript-docker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuraikun%2Frails-nuxt-typescript-docker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuraikun%2Frails-nuxt-typescript-docker-example/lists"}