Giter Site home page Giter Site logo

crudapp's Introduction

GitHub code size in bytes GitHub last commit GitHub commit activity month GitHub license

๐Ÿ“Œ Overview

crudapp is a project built with Next.js and Prisma, using NextAuth for authentication. It also utilizes React Query and TRPC for data fetching and communication. The project includes various dependencies such as React, Tailwind CSS, and TypeScript.

๐Ÿ” Table of Contents

๐Ÿ“ Project Structure

โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .eslintrc.cjs
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ next.config.mjs
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ postcss.config.cjs
โ”œโ”€โ”€ prettier.config.cjs
โ”œโ”€โ”€ prisma
โ”‚   โ””โ”€โ”€ schema.prisma
โ”œโ”€โ”€ public
โ”‚   โ”œโ”€โ”€ favicon.ico
โ”‚   โ”œโ”€โ”€ images
โ”‚   โ”‚   โ”œโ”€โ”€ icons8-home.svg
โ”‚   โ”‚   โ””โ”€โ”€ icons8-menu.svg
โ”‚   โ””โ”€โ”€ user.png
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ components
โ”‚   โ”‚   โ”œโ”€โ”€ accessDenied.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ empty.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ loader.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ navbar.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ sidebar.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ todoEditModal.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ todoItem.tsx
โ”‚   โ”‚   โ””โ”€โ”€ todoModal.tsx
โ”‚   โ”œโ”€โ”€ env.mjs
โ”‚   โ”œโ”€โ”€ hooks
โ”‚   โ”‚   โ””โ”€โ”€ useHover.ts
โ”‚   โ”œโ”€โ”€ pages
โ”‚   โ”‚   โ”œโ”€โ”€ _app.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ api
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ auth
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [...nextauth].ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ trpc
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ [trpc].ts
โ”‚   โ”‚   โ”œโ”€โ”€ index.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ today.tsx
โ”‚   โ”‚   โ””โ”€โ”€ upcoming.tsx
โ”‚   โ”œโ”€โ”€ server
โ”‚   โ”‚   โ”œโ”€โ”€ api
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ root.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ routers
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ todos.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ trpc.ts
โ”‚   โ”‚   โ”œโ”€โ”€ auth.ts
โ”‚   โ”‚   โ”œโ”€โ”€ db.ts
โ”‚   โ”‚   โ””โ”€โ”€ helpers
โ”‚   โ”‚       โ””โ”€โ”€ dateChecker.ts
โ”‚   โ”œโ”€โ”€ styles
โ”‚   โ”‚   โ””โ”€โ”€ globals.css
โ”‚   โ””โ”€โ”€ utils
โ”‚       โ””โ”€โ”€ api.ts
โ”œโ”€โ”€ tailwind.config.ts
โ””โ”€โ”€ tsconfig.json

๐Ÿ“ Project Summary

  • src: Main source code directory containing components, hooks, pages, and utils.
  • src/components: Reusable UI components used throughout the project.
  • src/hooks: Custom hooks providing common functionalities.
  • src/pages: React pages for routing and rendering different views.
  • src/pages/api: Serverless API endpoints for handling HTTP requests.
  • src/pages/api/auth: API endpoints for authentication-related functionalities.
  • src/pages/api/trpc: API endpoints for trpc (typed RPC) integration.
  • src/server: Server-side code for backend logic and API implementation.
  • src/server/api/routers: Express routers for organizing API routes.
  • src/server/helpers: Helper functions and utilities for server-side operations.

๐Ÿ’ป Stack

  • next-auth/prisma-adapter: Adapter for NextAuth.js authentication library with Prisma ORM integration.
  • tanstack/react-query: Data fetching and caching library for React applications.
  • trpc/client: TypeScript RPC (Remote Procedure Call) library for client-side communication with the server.
  • trpc/next: trpc server middleware for Next.js applications.
  • next: Framework for server-rendered React applications.
  • react: JavaScript library for building user interfaces.
  • prisma: Database toolkit to access databases with type safety and auto-generated queries.
  • tailwindcss: Utility-first CSS framework for rapid UI development.

โš™๏ธ Setting Up

DATABASE_URL

  • No guide needed. The value is already provided as "file:./db.sqlite".

NEXTAUTH_SECRET

  • Generate a new secret on the command line with the following command:
    • openssl rand -base64 32

NEXTAUTH_URL

GITHUB_CLIENT_ID

  • Insert a guide.

GITHUB_CLIENT_SECRET

  • Insert a guide.

๐Ÿš€ Run Locally

1.Clone the crudapp repository:

git clone https://github.com/fiskryeziu/crudapp

2.Install the dependencies with one of the package managers listed below:

pnpm install
bun install
npm install
yarn install

3.Start the development mode:

pnpm dev
bun dev
npm run dev
yarn dev

๐Ÿ™Œ Contributors

crudapp's People

Contributors

fiskryeziu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.