Skip to content

dipiash/nx-vite-react-ts-mantine-boilerplate

Repository files navigation

CI Hits

NX monorepo boilerplate with React + Vite + TypeScript + Mantine

Getting Started

Prerequisites

# Install pnpm
npx pnpm add -g pnpm
# Install NX
npm install -g nx

# Init project
pnpm run init-project

Development

  1. Read how to create GitHub access token
  2. Add .env into ./
    cp ./env.example ./.env
  3. Add .env.local into ./packages/graphql/.env.local
    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
    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
    pnpm codegen:graphql
  6. Start the app
    pnpm dev
    and open the page http://localhost:3000/

Examples

App screenshots

Desktop version

app_screenshot_1.png

app_screenshot_2.png

Mobile version

app_screenshot_3.png

Features

License

This code is licensed under the MIT License. You can find the license file here.