A collaborative platform for software development guides where users can learn, contribute, and improve content together.
- 📚 Step-by-Step Guides: Follow comprehensive tutorials for building real-world applications
- 👍 Community Voting: Vote on whether guides helped you succeed
- ✏️ Propose Improvements: Suggest edits that can replace original content when approved
- 💬 Step Comments: Discuss specific steps and get help from the community
- ➕ Create New Chapters: Share your knowledge by proposing new chapters
- Framework: Next.js 15 with App Router
- Database: SQLite with Prisma ORM
- Authentication: NextAuth.js
- Styling: Tailwind CSS
- UI Components: Radix UI
- Markdown: React Markdown with GitHub Flavored Markdown
- Node.js 18+ and npm
- Git
- Clone the repository:
cd /Users/jonathan/projects/hackathon1/devguide-platform- Install dependencies:
npm install- Set up the database:
npx prisma migrate dev- Seed the database with sample data:
npm run db:seed- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
- Email:
test@example.com - Password:
password123
devguide-platform/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── auth/ # Authentication pages
│ ├── chapters/ # Chapter pages
│ └── dashboard/ # User dashboard
├── components/ # React components
├── lib/ # Utility functions
├── prisma/ # Database schema and migrations
└── public/ # Static assets
- Users can browse existing chapters
- Each chapter contains multiple steps with markdown content
- Chapters are created by users and can be improved by the community
- Users vote on whether each step helped them complete the task
- Success rates are displayed for each step
- Helps identify which content is most effective
- Users can propose improvements to any step
- Proposals are voted on by the community
- When a proposal reaches 80% approval with at least 5 votes, it automatically replaces the original content
- Threaded comments on each step
- Users can reply to comments
- Helps build community discussion around specific implementation details
- Any authenticated user can propose a new chapter
- Includes title, description, and multiple steps
- Auto-generates URL-friendly slugs
Create a .env file in the root directory:
DATABASE_URL="file:./dev.db"
NEXTAUTH_SECRET="your-secret-key-here"
NEXTAUTH_URL="http://localhost:3000"# Run migrations
npx prisma migrate dev
# Open Prisma Studio
npx prisma studio
# Reset database
npx prisma migrate resetnpm run build
npm start- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.