mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
docs: moves storybook into webapp/README.md
It makes much more sense to put it under the webapp's README than backend. FYI: @mattwr18
This commit is contained in:
parent
67dde07b67
commit
0f7bfea1b0
@ -90,41 +90,6 @@ $ yarn run db:reset
|
|||||||
{% endtab %}
|
{% endtab %}
|
||||||
{% endtabs %}
|
{% endtabs %}
|
||||||
|
|
||||||
### Storybook
|
|
||||||
|
|
||||||
We encourage contributors to use Storybook to test out new components in an isolated way, and benefit from its many features.
|
|
||||||
See the docs for live examples and answers to FAQ, among other helpful information. 
|
|
||||||
|
|
||||||
{% tabs %}
|
|
||||||
{% tab title="Docker" %}
|
|
||||||
|
|
||||||
After you have started the application following the instructions above, in another terminal run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ docker-compose exec webapp yarn storybook
|
|
||||||
```
|
|
||||||
The output should look similar to this:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Click on the link http://localhost:3002/ to open the browser to your interactive storybook.
|
|
||||||
|
|
||||||
{% endtab %}
|
|
||||||
|
|
||||||
{% tab title="Without Docker" %}
|
|
||||||
Run the following command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# in webapp/
|
|
||||||
yarn storybook
|
|
||||||
```
|
|
||||||
|
|
||||||
Open http://localhost:3002/ in your browser
|
|
||||||
|
|
||||||
{% endtab %}
|
|
||||||
{% endtabs %}
|
|
||||||
|
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
**Beware**: We have no multiple database setup at the moment. We clean the
|
**Beware**: We have no multiple database setup at the moment. We clean the
|
||||||
|
|||||||
@ -33,6 +33,42 @@ $ yarn build
|
|||||||
$ yarn start
|
$ yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Storybook
|
||||||
|
|
||||||
|
We encourage contributors to use Storybook to test out new components in an isolated way, and benefit from its many features.
|
||||||
|
See the docs for live examples and answers to FAQ, among other helpful information. 
|
||||||
|
|
||||||
|
{% tabs %}
|
||||||
|
{% tab title="Docker" %}
|
||||||
|
|
||||||
|
After you have started the application following the instructions above, in another terminal run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose exec webapp yarn storybook
|
||||||
|
```
|
||||||
|
The output should look similar to this:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Click on the link http://localhost:3002/ to open the browser to your interactive storybook.
|
||||||
|
|
||||||
|
{% endtab %}
|
||||||
|
|
||||||
|
{% tab title="Without Docker" %}
|
||||||
|
Run the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# in webapp/
|
||||||
|
yarn storybook
|
||||||
|
```
|
||||||
|
|
||||||
|
Open http://localhost:3002/ in your browser
|
||||||
|
|
||||||
|
{% endtab %}
|
||||||
|
{% endtabs %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Styleguide
|
## Styleguide
|
||||||
|
|
||||||
All reusable Components \(for example avatar\) should be done inside the [Nitro-Styleguide](https://github.com/Human-Connection/Nitro-Styleguide) repository.
|
All reusable Components \(for example avatar\) should be done inside the [Nitro-Styleguide](https://github.com/Human-Connection/Nitro-Styleguide) repository.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user