|
| 1 | +# Project Collaboration Platform Wiki |
| 2 | + |
| 3 | +Welcome to the Project Collaboration Platform Wiki! |
| 4 | + |
| 5 | +## About |
| 6 | +This platform helps users share project ideas and find collaborators. Users can post projects, specify required skills, and provide contact info for easy networking. |
| 7 | + |
| 8 | +## Key Features |
| 9 | +- Add and manage project ideas |
| 10 | +- Filter/search projects |
| 11 | +- Profile page for your projects |
| 12 | +- Contact project owners via Instagram, LinkedIn, Email, WhatsApp |
| 13 | +- Admin panel for managing categories and options |
| 14 | +- Secure authentication with Firebase |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## Getting Started |
| 19 | + |
| 20 | +### 1. Clone the Repository |
| 21 | +Clone the repository to your local machine: |
| 22 | +```bash |
| 23 | +git clone https://github.com/yourusername/project-collaboration.git |
| 24 | +cd project-collaboration |
| 25 | +``` |
| 26 | + |
| 27 | +### 2. Install Dependencies |
| 28 | +Install all required Node.js packages: |
| 29 | +```bash |
| 30 | +npm install |
| 31 | +``` |
| 32 | + |
| 33 | +### 3. Environment Setup |
| 34 | +Create a `.env.local` file in the root directory. You can copy from an example if provided: |
| 35 | +```bash |
| 36 | +cp .env.example .env.local |
| 37 | +``` |
| 38 | +Fill in the following variables with your own credentials: |
| 39 | +```env |
| 40 | +DATABASE_URL=postgresql://user:password@localhost:5432/yourdb |
| 41 | +
|
| 42 | +NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key |
| 43 | +NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain |
| 44 | +NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_firebase_project_id |
| 45 | +NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket |
| 46 | +NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id |
| 47 | +NEXT_PUBLIC_FIREBASE_APP_ID=your_firebase_app_id |
| 48 | +
|
| 49 | +FIREBASE_ADMIN_PRIVATE_KEY=your_firebase_admin_private_key |
| 50 | +FIREBASE_ADMIN_CLIENT_EMAIL=your_firebase_admin_client_email |
| 51 | +``` |
| 52 | + |
| 53 | +### 4. Database Migration & Seeding |
| 54 | +Run the following commands to set up your database schema and seed initial data: |
| 55 | +```bash |
| 56 | +npx drizzle-kit push |
| 57 | +npx tsx drizzle/seed.ts |
| 58 | +``` |
| 59 | + |
| 60 | +### 5. Start the Development Server |
| 61 | +Start the app locally: |
| 62 | +```bash |
| 63 | +npm run dev |
| 64 | +``` |
| 65 | +Visit [http://localhost:3000](http://localhost:3000) in your browser. |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +## Usage |
| 70 | +- **Add a Project:** Use the "Add Project" page to submit your idea and contact info. |
| 71 | +- **View Projects:** Browse and filter projects on the home page. |
| 72 | +- **Profile:** See and manage your own projects in your profile. |
| 73 | +- **Edit/Delete:** Edit or delete your projects from your profile page. |
| 74 | +- **Contact:** Use the provided links to contact project owners via Instagram, LinkedIn, Email, or WhatsApp. |
| 75 | +- **Admin:** Use the admin panel to manage categories and options. |
| 76 | + |
| 77 | +--- |
| 78 | + |
| 79 | +## Advanced Configuration |
| 80 | +- **Custom Domains:** You can specify a custom domain for your project if needed. |
| 81 | +- **Seeding More Data:** Edit the files in `drizzle/seed-*.ts` to add more categories, options, or example projects. |
| 82 | +- **Production Deployment:** Configure your environment variables and database for production. Use a process manager (like PM2) or deploy to Vercel/Netlify for serverless hosting. |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +## Troubleshooting |
| 87 | +- **Database Errors:** Ensure your `DATABASE_URL` is correct and the database server is running. |
| 88 | +- **Firebase Auth Issues:** Double-check all Firebase credentials in your `.env.local` file. |
| 89 | +- **Migrations Fail:** If migrations fail, check for existing tables or conflicting schema changes. |
| 90 | +- **Port in Use:** If port 3000 is in use, set `PORT=xxxx` in your `.env.local`. |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## FAQ |
| 95 | +- **How do I add a new category?** Use the admin panel to manage categories. |
| 96 | +- **How do I reset my password?** Use the Firebase authentication reset link. |
| 97 | +- **How do I change the project branding?** Edit the Navbar and Footer components in `components/`. |
| 98 | +- **How do I add more contact methods?** Extend the project schema and forms in the codebase. |
| 99 | + |
| 100 | +--- |
| 101 | + |
| 102 | +## More |
| 103 | +For detailed documentation, see the README or open an issue for help. You can also expand this wiki with: |
| 104 | +- API Reference |
| 105 | +- Admin Guide |
| 106 | +- Deployment Guide |
| 107 | +- Customization Tips |
0 commit comments