|
1 | 1 | import { NextResponse } from "next/server" |
2 | | -import fs from "fs" |
3 | | -import path from "path" |
4 | 2 |
|
5 | 3 | export async function GET() { |
6 | 4 | try { |
7 | | - // Read the projects data from the JSON file |
8 | | - const dataFilePath = path.join(process.cwd(), "data", "projects.json") |
9 | | - const fileContents = fs.readFileSync(dataFilePath, "utf8") |
10 | | - const projects = JSON.parse(fileContents) |
| 5 | + // Hard-coded projects data |
| 6 | + const projects = [ |
| 7 | + { |
| 8 | + id: "duo-keyboard", |
| 9 | + title: "Duo Keyboard Koalition", |
| 10 | + description: |
| 11 | + "A collaborative community of hackers, engineers, and builders who believe that hackathons are just the beginning. Founded to address the all-too-common issue of abandoned weekend projects, the Koalition exists to carry great ideas forward — turning short-term hacks into long-term, meaningful solutions.", |
| 12 | + image: "/placeholder.svg?height=400&width=600", |
| 13 | + tags: ["Community", "Hackathons", "Collaboration"], |
| 14 | + link: "https://duo-keyboard-koalition.github.io", |
| 15 | + github: "https://github.com/duo-keyboard-koalition", |
| 16 | + featured: true, |
| 17 | + longDescription: |
| 18 | + "The Duo Keyboard Koalition is a collaborative community of hackers, engineers, and builders who believe that hackathons are just the beginning. Founded to address the all-too-common issue of abandoned weekend projects, the Koalition exists to carry great ideas forward — turning short-term hacks into long-term, meaningful solutions.\n\nWe're not just here for the demo day or the post-event applause. Our focus is on continued development, iteration, and real-world application. Members of the Koalition work together to maintain, refine, and evolve their projects, often transforming them into polished tools, products, or platforms well after the event ends.\n\nThe Koalition brings together talent from across campuses like the University of Waterloo, UofT, McGill, and more. It's a space where students and early-career developers come to learn, collaborate, and grow — supported by a shared passion for building impactful technology. With a thriving GitHub organization, 100+ members, and over 10+ collective hackathon wins, we are creating a space where momentum doesn't stop on Sunday night.\n\nThis is more than a team — it's a community focused on learning, building, and creating real impact together.", |
| 19 | + }, |
| 20 | + { |
| 21 | + id: "galatea-ai", |
| 22 | + title: "Galatea AI", |
| 23 | + description: |
| 24 | + "An artificial intelligence platform that generates realistic 3D avatars from text descriptions, using advanced neural networks and computer vision techniques.", |
| 25 | + image: "/placeholder.svg?height=400&width=600", |
| 26 | + tags: ["AI", "Computer Vision", "Neural Networks"], |
| 27 | + link: "https://example.com/galatea-ai", |
| 28 | + github: "https://github.com/codejedi/galatea-ai", |
| 29 | + featured: true, |
| 30 | + }, |
| 31 | + { |
| 32 | + id: "syntaxual-ai", |
| 33 | + title: "Syntaxual AI", |
| 34 | + description: |
| 35 | + "A code generation and analysis tool that uses machine learning to understand programming patterns and suggest optimizations or detect potential bugs.", |
| 36 | + image: "/placeholder.svg?height=400&width=600", |
| 37 | + tags: ["Machine Learning", "Code Analysis", "Developer Tools"], |
| 38 | + link: "https://example.com/syntaxual-ai", |
| 39 | + github: "https://github.com/codejedi/syntaxual-ai", |
| 40 | + featured: false, |
| 41 | + }, |
| 42 | + { |
| 43 | + id: "magic-quill", |
| 44 | + title: "Magic.Quill", |
| 45 | + description: |
| 46 | + "An AI-powered writing assistant that helps users craft compelling stories, essays, and articles with intelligent suggestions and style analysis.", |
| 47 | + image: "/placeholder.svg?height=400&width=600", |
| 48 | + tags: ["NLP", "Creative Writing", "Education"], |
| 49 | + link: "https://example.com/magic-quill", |
| 50 | + github: "https://github.com/codejedi/magic-quill", |
| 51 | + featured: false, |
| 52 | + }, |
| 53 | + { |
| 54 | + id: "ali", |
| 55 | + title: "Ali", |
| 56 | + description: |
| 57 | + "A personal assistant AI that helps manage schedules, answer questions, and automate routine tasks through natural language processing.", |
| 58 | + image: "/placeholder.svg?height=400&width=600", |
| 59 | + tags: ["AI", "Automation", "Productivity"], |
| 60 | + link: "https://example.com/ali", |
| 61 | + github: "https://github.com/codejedi/ali", |
| 62 | + featured: true, |
| 63 | + }, |
| 64 | + { |
| 65 | + id: "code-civilization", |
| 66 | + title: "CodeCivilization", |
| 67 | + description: |
| 68 | + "An educational game that teaches programming concepts through a civilization-building simulation, making coding accessible and fun.", |
| 69 | + image: "/placeholder.svg?height=400&width=600", |
| 70 | + tags: ["Education", "Game Development", "Programming"], |
| 71 | + link: "https://example.com/code-civilization", |
| 72 | + github: "https://github.com/codejedi/code-civilization", |
| 73 | + featured: false, |
| 74 | + }, |
| 75 | + ] |
11 | 76 |
|
12 | 77 | // Return the projects data as JSON |
13 | 78 | return NextResponse.json({ projects }, { status: 200 }) |
|
0 commit comments