Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hellstromsamuel/easyplay-stats

EasyPlay Stats - Next.js App Router, Storybook
https://github.com/hellstromsamuel/easyplay-stats

nextjs storybook

Last synced: about 2 months ago
JSON representation

EasyPlay Stats - Next.js App Router, Storybook

Awesome Lists containing this project

README

        

# EasyPlay Stats - Next.js App Router, Storybook

EasyPlay - Overview of stats in our platform

## Setup

- Clone this project, or
- Create new Next.js project and add Storybook

```bash
npx create-next-app@latest
npx storybook@latest init
```

## Run project locally

Development server

```bash
npm run dev
```

Storybook

```bash
npm run storybook
```

## Folder structure

```bash
src/
├── app/ # Next.js routes and app-specific code
├── components/ # React components
│ ├── features/ # Feature-specific components
│ ├── pages/ # Page-level components
│ └── ui/ # Reusable UI components
├── shared/ # Shared utilities and types
│ ├── interfaces/ # TypeScript interface definitions
│ └── mocks/ # Mock data for testing and development
└── storybook/ # Storybook configuration and examples
```

## Deployment

- You can deploy your Storybook with Chromatic
- [Deploy Storybook](https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/)
- Deploy Storybook project to Chromatic

```bash
npx chromatic --project-token=[PROJECT_TOKEN]
```

## Documentation

- [Next.js Documentation](https://nextjs.org/docs)
- [Storybook Documentation](https://storybook.js.org/docs)