How to Code a Community forum?

Hello folks, My team is going to launch an e-book site with a community forum for a college project. Sadly we do not know how can we code our own community forums without using any other third party forums. Its a part of our college project so we need to do it manually.
It would be great if you guys could help us with this.
Thanks in Advance.

Hello ! Sorry for the late reply. Which language are you using ?