https://github.com/lifeiscontent/realworld
"The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by Next.js and Ruby on Rails 🏅
https://github.com/lifeiscontent/realworld
apollo-client graphql graphql-ruby rails rails-api reactjs realworld storybook
Last synced: 2 months ago
JSON representation
"The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by Next.js and Ruby on Rails 🏅
- Host: GitHub
- URL: https://github.com/lifeiscontent/realworld
- Owner: lifeiscontent
- License: mit
- Created: 2020-02-20T08:45:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T21:49:36.000Z (8 months ago)
- Last Synced: 2025-03-28T12:03:03.273Z (3 months ago)
- Topics: apollo-client, graphql, graphql-ruby, rails, rails-api, reactjs, realworld, storybook
- Language: Ruby
- Homepage: https://realworld.now.sh
- Size: 11.4 MB
- Stars: 164
- Watchers: 3
- Forks: 44
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# realworld


[](https://master--5fcdd27b2771900021fc381e.chromatic.com)This repo implements opinionated best practices for Apollo Client, React, Next.js and Storybook.
1 caveat is it does not try to implement a best practice on UI Components as the styles are reused from the [realworld.io](https://github.com/gothinkster/realworld) project.
## Setup
### Api
```sh
cd api
bundle
bin/rails db:migrate
bin/rails db:seed
bin/rails s
```### Web
```sh
cd web
npm install
npm run dev
```## Testing
### Api
```sh
cd api
bin/rails spec
```### Web
```sh
cd web
npm test
```## Tooling
### Api
#### Generate ERD
```sh
bin/rails erd
```### Web
#### Storybook
```sh
npm run storybook
```