https://github.com/dking1342/pern-gql-reddit
A PERN stack reddit clone
https://github.com/dking1342/pern-gql-reddit
apollo chakra-ui codegen graphql jwt-authentication mikro-orm nextjs pern-stack typeorm typescript
Last synced: about 2 months ago
JSON representation
A PERN stack reddit clone
- Host: GitHub
- URL: https://github.com/dking1342/pern-gql-reddit
- Owner: dking1342
- Created: 2021-07-29T20:32:32.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T20:12:49.000Z (almost 5 years ago)
- Last Synced: 2025-01-14T15:23:53.991Z (over 1 year ago)
- Topics: apollo, chakra-ui, codegen, graphql, jwt-authentication, mikro-orm, nextjs, pern-stack, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 72.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example app with [chakra-ui](https://github.com/chakra-ui/chakra-ui)
This example features how to use [chakra-ui](https://github.com/chakra-ui/chakra-ui) as the component library within a Next.js app.
We are connecting the Next.js `_app.js` with `chakra-ui`'s Theme and ColorMode containers so the pages can have app-wide dark/light mode. We are also creating some components which shows the usage of `chakra-ui`'s style props.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-chakra-ui)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-chakra-ui&project-name=with-chakra-ui&repository-name=with-chakra-ui)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-chakra-ui with-chakra-ui-app
# or
yarn create next-app --example with-chakra-ui with-chakra-ui-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
## Notes
Chakra has supported Gradients and RTL in `v1.1`. To utilize RTL, [add RTL direction and swap](https://chakra-ui.com/docs/features/rtl-support).
If you don't have multi-direction app, you should make `` inside `_document.js`.