Skip to content

codingki/cosmos-frontend

Repository files navigation

Strangestarter

Strangestarter

Next.js + Chakra UI + Turborepo boilerplate for Strangelove Ventures' projects 🐲


Table of contents


Features

Using template

via GitHub templates

via CLI using degit

$ npx degit strangelove-ventures/strangestarter new-project
$ cd new-project

Setup repository

  • Install dependencies by running pnpm install
  • Update website information in website/config/favicons.json and website/config/metadata.json
  • Change website icon and social image in website/public/icon.png and website/public/social.png
  • Generate favicons assets by running pnpm website favicons

Scripts

  • pnpm build - build website
  • pnpm dev - run website dev instance
  • PORT=12345 pnpm dev - run website dev instance on custom port (non-windows, for windows use cross-env)
  • pnpm website tokens - generate Chakra UI theme token typings
  • pnpm website [...args] - run website scoped commands

GitHub Workflows

Directory structure

├── packages/             # local packages
├── patches/              # package patches
└── website/              # main website entrypoint
    ├── config/           # various configuration files
    ├── constants/        # hardcoded constants and variables
    ├── hooks/            # custom react hooks
    ├── lib/              # 3rd party imports/exports (mdx, prisma, etc.)
    ├── pages/            # main next.js pages
    ├── public/           # static assets
    │   └── assets/       # favicons assets
    ├── scripts/          # runnable scripts
    ├── store/            # application state providers/stores
    ├── styles/           # stylesheets and theme definitions
    ├── ui/               # components directory
    └── utils/            # various utility declarations

Notes

  • Make sure the root directory is website/ and not / (read more)

References

License

MIT License, Copyright (c) 2022 Strangelove Ventures