From 80ce8eedb9ab348f9f4a7f8131324078a51ca29f Mon Sep 17 00:00:00 2001 From: Irere123 Date: Tue, 12 Nov 2024 16:04:34 +0200 Subject: [PATCH] contributing guidelines --- CONTRIBUTING.md | 54 ++++++++++++++++++++++ package.json | 5 +- src/components/projects/edit-team-form.tsx | 5 +- src/modules/auth/index.ts | 20 +++++++- 4 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..4f35b60 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,54 @@ + +# Contributing Guidelines + + +Thank you for considering contributing to Relaunch project! We appreciate your help in making this project better. Below are the guidelines to help you get started. + + +### Clone the Repository + +Clone the repository to your local machine: +# Start Generation Here + +```bash + +git clone https://github.com/your-username/relaunch.git +cd relaunch +``` + +## Setting Up the Project Locally + +To set up this project on your local machine, please follow these steps: + +### Prerequisites + +1. **Node.js**: Ensure you have Node.js installed. You can download it from [nodejs.org](https://nodejs.org/). +2. **Yarn**: This project uses Yarn as a package manager. Install it globally if you haven't already: + ```bash + npm install --global yarn + ``` + +3. **Turso**: You will need a Turso database. Sign up at [turso.io](https://turso.io/) and create a new database. + + +# Install dependencies + +```bash + +pnpm install +``` + +# Set up environment variables + +```bash +cp .env.example .env +``` +# Run database migrations +```bash +pnpm db:migrate +``` + +# Start the development server +```bash +pnpm dev +``` diff --git a/package.json b/package.json index bcf8871..09305e1 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "build": "next build", "start": "next start", "lint": "next lint", - "db:migrate": "drizzle-kit migrate", - "db:gen": "drizzle-kit generate" + "db:migrate": "drizzle-kit migrate --config drizzle.config.ts", + "db:gen": "drizzle-kit generate --config drizzle.config.ts", + "db:studio": "drizzle-kit studio --port 4000 --verbose --config drizzle.config.ts" }, "dependencies": { "@auth/drizzle-adapter": "^1.7.0", diff --git a/src/components/projects/edit-team-form.tsx b/src/components/projects/edit-team-form.tsx index 9e3f1f4..dc6b266 100644 --- a/src/components/projects/edit-team-form.tsx +++ b/src/components/projects/edit-team-form.tsx @@ -21,6 +21,8 @@ import { selectUserSchema, } from "@/modules/actions/utils"; import { selectTeamMember } from "@/modules/actions/select-team-member"; + + import { cn } from "@/lib/utils"; import { editTeam } from "@/modules/actions/edit-team"; import { toast } from "@/hooks/use-toast"; @@ -28,6 +30,7 @@ import { revalidateProject } from "@/modules/actions/revalidate-project"; import { LoadingSpinner } from "../icons"; import { Button } from "../ui/button"; import { buttonLinkVariants } from "../ui/button-link"; +import { Input } from "../ui/input"; export function EditTeamForm({ props, @@ -80,7 +83,7 @@ export function EditTeamForm({
- { + console.debug(`[NextAuth][DEBUG][${code}]`, metadata); + }, + error: (error) => { + console.error(`[NextAuth][ERROR]`, error); + }, + warn: (code) => { + console.warn(`[NextAuth][WARN][${code}]`); + }, + }, trustHost: true, });