{"id":14955619,"url":"https://github.com/kenforthewin/react-rails-auth","last_synced_at":"2025-10-01T18:31:49.477Z","repository":{"id":82644606,"uuid":"112027046","full_name":"kenforthewin/react-rails-auth","owner":"kenforthewin","description":"full-stack, dockerized React token authentication with a Rails api","archived":false,"fork":false,"pushed_at":"2017-11-28T20:11:55.000Z","size":152,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-14T11:45:52.216Z","etag":null,"topics":["authentication","docker","docker-compose","rails-api","rails5","react"],"latest_commit_sha":null,"homepage":"","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/kenforthewin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-25T18:53:25.000Z","updated_at":"2019-03-16T17:19:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dafe8f8-1271-4cc0-a556-833a902e218d","html_url":"https://github.com/kenforthewin/react-rails-auth","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/kenforthewin%2Freact-rails-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenforthewin%2Freact-rails-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenforthewin%2Freact-rails-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenforthewin%2Freact-rails-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenforthewin","download_url":"https://codeload.github.com/kenforthewin/react-rails-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234726143,"owners_count":18877489,"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":["authentication","docker","docker-compose","rails-api","rails5","react"],"created_at":"2024-09-24T13:11:27.483Z","updated_at":"2025-10-01T18:31:49.082Z","avatar_url":"https://github.com/kenforthewin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-rails-auth\n\n## What it is\nThis repo contains a Ruby on Rails application serving as the api for a React frontend. The API backend serves user token-based authentication to a custom-rolled, redux-based authentication frontend. The token auth implementation aims to be as simple as possible while still maintaining full functionality.\n\n## Why it exists\nUse this repo as a learning exercise for rolling your own token auth, or as a starting point for a new app. \n\n## Getting started\nAll services in this repo are containerized. To get started, first make sure docker and docker-compose are installed.\n1. Clone the repo and navigate to its folder\n1. Create your own `.env` file at the base of the project. Refer to the `.env.sample` file for what's needed.\n1. Run the dev script with `./scripts/run-dev.sh`\n1. Wait for the images to build. \n1. Eventually the dev server will be up at `localhost:3001`\n\n## Production stack\nFor production, the React site uses an alternate Dockerfile to build a production image. This image uses a simple nginx server to serve the static files which are generated from the build. Then, a combination of [docker-gen](https://github.com/jwilder/docker-gen) and nginx are used to proxy requests to either the api or the react site. Finally, a [docker-letsencrypt-nginx-proxy-companion](https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion) container is included to optionally allow both services SSL encryption through Let's Encrypt. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenforthewin%2Freact-rails-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenforthewin%2Freact-rails-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenforthewin%2Freact-rails-auth/lists"}