This is the UI code for Roleypoly.
We use Atomic Design principles, being most of our code is split up into atoms, molecules, organisms, templates, and pages (which are also Next.js pages.)
This project's storybook is hosted at https://ui.roleypoly.com.
For the basics, you'll need:
- node v12+
- at least 10 beers
Start the storybook. (and let's be real, you probably want to do the majority of work in Storybook. You probably don't like thinking about Kubernetes.)
npm i
npm run storybookWait, you're a regular web dev? This is where stuff gets terrifying. Take a shot before continuing.
For the practical implementation, you'll need to either run a local environment of Roleypoly (docs might be here), or use a staging proxy, then nicely ask okano cat#0001 on Discord for UI access to a staging shard.
npm i
# you'll need to set one or both of these vars:
# - for online development:
export ROLEYPOLY_SECRET=$YOUR_API_KEY_HERE
export ROLEYPOLY_API=https://my-ui-shard.stg.roleypoly.com
# - for offline development:
export ROLEYPOLY_API=https://my.roleypoly.local
# then run
npm run dev- For everything you might do, branch from
develop. (Regularly deployed to next.roleypoly.com). - If it's a hotfix for production that would conflict with develop, please branch from
masterinstead, and explain why in your PR. - Ideally, work done needs a tracking issue, please note it in your PR.
- All code must pass tests and review by code owners to be merged.
Roleypoly is deployed in a handful of ways.
masteris typically deployed to https://roleypoly.com after v3 launches (until then, https://beta.roleypoly.com)master's storybook is deployed to https://ui.roleypoly.comroleypoly/ui:lateston docker.
developis typically deployed to https://next.roleypoly.com.roleypoly/ui:nexton docker.