CodeQuery is a Q&A platform built for developers. Ask coding questions, post answers, and build reputation through community voting and badges — basically Stack Overflow, but built from scratch.
- Authentication — register, log in, log out, edit your profile with avatar and bio
- Questions — post with title, body, and tags; search and browse; view counts tracked
- Answers — submit answers, mark one as accepted, sorted by votes
- Tags — browse by tag (PHP, JavaScript, Python, etc.), each with its own page
- Voting & Reputation — upvote/downvote, earn reputation, unlock Bronze/Silver/Gold badges
- Comments — on both questions and answers
- Notifications — get notified when someone answers your question or your answer gets accepted or upvoted
POST /register— create an accountPOST /login— log inPOST /logout— log outGET /profile/{id}— view a profilePUT /profile/{id}— update a profile
GET /questions— list all questionsGET /questions/{id}— view one questionPOST /questions— create a questionPUT /questions/{id}— edit a questionDELETE /questions/{id}— delete a question
POST /questions/{id}/answers— add an answerPUT /answers/{id}— edit an answerDELETE /answers/{id}— delete an answerPOST /answers/{id}/accept— mark an answer as accepted
POST /questions/{id}/votePOST /answers/{id}/vote
GET /tags— list all tagsGET /tags/{name}— questions under a tag
POST /questions/{id}/commentsPOST /answers/{id}/commentsDELETE /comments/{id}
GET /notifications
- Backend: PHP
- Database: MySQL / MariaDB
- Frontend: HTML, CSS, JavaScript, Tailwind, SweetAlert, highlight.js
MIT — open source, use it, modify it, break it, whatever.
Some of the frontend UI was designed with AI assistance.