Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dipiash/nx-vite-react-ts-mantine-boilerplate
NX monorepository with: Vite, GraphQL / Apollo, Typescript, Storybook / CSS Modules / Mantine
https://github.com/dipiash/nx-vite-react-ts-mantine-boilerplate
apollo apollo-client boilerplate boilerplate-front-end boilerplate-template boilerplates css css-modules graphql hacktoberfest mantine monorepo nx react typescript vite vitest
Last synced: 18 days ago
JSON representation
NX monorepository with: Vite, GraphQL / Apollo, Typescript, Storybook / CSS Modules / Mantine
- Host: GitHub
- URL: https://github.com/dipiash/nx-vite-react-ts-mantine-boilerplate
- Owner: dipiash
- License: mit
- Created: 2022-03-03T18:58:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T18:01:34.000Z (22 days ago)
- Last Synced: 2024-10-24T00:17:48.697Z (22 days ago)
- Topics: apollo, apollo-client, boilerplate, boilerplate-front-end, boilerplate-template, boilerplates, css, css-modules, graphql, hacktoberfest, mantine, monorepo, nx, react, typescript, vite, vitest
- Language: TypeScript
- Homepage: https://dipiash.github.io/nx-vite-react-ts-mantine-boilerplate/
- Size: 7.74 MB
- Stars: 22
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
![CI](https://github.com/dipiash/nx-vite-react-ts-mantine-boilerplate/actions/workflows/CheckPullRequest.yml/badge.svg?branch=main)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fdipiash%2Fnx-vite-react-ts-mantine-boilerplate&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)# NX monorepo boilerplate with React + Vite + TypeScript + Mantine
## Getting Started
### Prerequisites
```sh
# Install NX
npm install -g nx# Init project
npm run init-project
```### Development
1. Read [how to create GitHub access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)
2. Add `.env` into `./`
```bash
cp ./env.example ./.env
```
3. Add `.env.local` into `./packages/graphql/.env.local`
```bash
cp ./packages/graphql/env.example ./packages/graphql/.env.local
```
and add your GitHub token (see step 1)
4. Add `.env.local` to `./apps/main/.env.local`
```bash
cp ./apps/main/env.example ./apps/main/.env.local
```
and add your GitHub token (see step 1)
5. _[Optional step]_ Generate code from GraphQL schema
```sh
npm run codegen:graphql
```
6. Start the app
```sh
npm run dev
```
and open the page http://localhost:3000/### Examples
- [GitHub repository list](https://dipiash.github.io/nx-vite-react-ts-mantine-boilerplate/)
### App screenshots
#### Desktop version
#### Mobile version
### Features
- [Nx 20](https://nx.dev)
- [React 18](https://reactjs.org)
- [Mantine 7](https://mantine.dev/)
- [Storybook 7](https://storybook.js.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [Vite 5](https://vitejs.dev/)
- [Vitest](https://vitest.dev/)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
- [Cypress](https://www.cypress.io)
- [ESLint](https://eslint.org/)
- HMR (Hot Module Replacement)## License
This code is licensed under the MIT License.
You can find the license file [here](/LICENSE).