Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 970 Bytes

README.md

File metadata and controls

63 lines (43 loc) · 970 Bytes

realworld

Web Api Storybook

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 project.

Setup

Api

cd api
bundle
bin/rails db:migrate
bin/rails db:seed
bin/rails s

Web

cd web
npm install
npm run dev

Testing

Api

cd api
bin/rails spec

Web

cd web
npm test

Tooling

Api

Generate ERD

bin/rails erd

Web

Storybook

npm run storybook