Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/casaub0n/cfstack

for company site
https://github.com/casaub0n/cfstack

monorepo

Last synced: 7 days ago
JSON representation

for company site

Awesome Lists containing this project

README

        



CF Stack



This repository is the ideal monorepo for next.js

I follow these technical stacks:

- [Turborepo](https://turbo.build/repo)
- [Prettier](https://prettier.io/)
- [ESLint](https://eslint.org/)
- [Jest](https://jestjs.io/)
- [Storybook](https://storybook.js.org/)
- [GitHub actions](https://github.com/features/actions)
- [Work on Windows](#Windows)

# documents

[storybook](https://casaub0n.github.io/cfstack/)

## dev

```console
$ pnpm storybook
```

[storybook readme](./apps/catalog/README.md)

## Windows

### Update powershell

[Windows への PowerShell のインストール](https://learn.microsoft.com/ja-jp/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3)

This is by using [winget](https://learn.microsoft.com/ja-jp/windows/package-manager/winget/)

```console
$ winget search Microsoft.PowerShell
$ winget install --id Microsoft.Powershell --source winget

```

### Scoop

Scoop is the best package manager for Windows.
In this section, installed:

- [Scoop](https://scoop.sh/)
- [Git](https://gitforwindows.org/)
- [fnm](https://github.com/Schniz/fnm)
- [Node.js](https://nodejs.org/)
- [pnpm](https://pnpm.io/)

```console
$ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
$ irm get.scoop.sh | iex
$ scoop bucket add main
$ scoop install main/git
$ scoop install main/fnm
$ fnm install --lts
$ fnm use v18.16.0
$ scoop install main/pnpm
```

## Getting Started

```console
$ git clone [email protected]:casaub0n/cfstack.git
$ cd cfstack
$ pnpm install
$ pnpm build
```

environment secrets:

- CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_API_TOKEN
- TURBO_TEAM
- TURBO_TOKEN
in Action sercrets(https://github.com/someone/cfstack/settings/secrets/actions) for your GitHub Actions.

### CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN

https://zenn.dev/nwtgck/articles/1fdee0e84e5808

### TURBO_TEAM and TURBO_TOKEN

https://turborepo.org/docs/ci/github-actions

### local cache to build

```console
$ pnpm turbo login
$ pnpm turbo link
```

[RFC](docs/rfc.md)