Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeQuery — Programming Q&A Platform

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.


Features

  • 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

API Routes (WIP, subject to change)

Authentication

  • POST /register — create an account
  • POST /login — log in
  • POST /logout — log out
  • GET /profile/{id} — view a profile
  • PUT /profile/{id} — update a profile

Questions

  • GET /questions — list all questions
  • GET /questions/{id} — view one question
  • POST /questions — create a question
  • PUT /questions/{id} — edit a question
  • DELETE /questions/{id} — delete a question

Answers

  • POST /questions/{id}/answers — add an answer
  • PUT /answers/{id} — edit an answer
  • DELETE /answers/{id} — delete an answer
  • POST /answers/{id}/accept — mark an answer as accepted

Voting

  • POST /questions/{id}/vote
  • POST /answers/{id}/vote

Tags

  • GET /tags — list all tags
  • GET /tags/{name} — questions under a tag

Comments

  • POST /questions/{id}/comments
  • POST /answers/{id}/comments
  • DELETE /comments/{id}

Notifications

  • GET /notifications

Tech Stack

  • Backend: PHP
  • Database: MySQL / MariaDB
  • Frontend: HTML, CSS, JavaScript, Tailwind, SweetAlert, highlight.js

License

MIT — open source, use it, modify it, break it, whatever.

Notes

Some of the frontend UI was designed with AI assistance.

Contributors

Languages