GithubHelp home page GithubHelp logo

ekelhala / course-forum Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.35 MB

Anonymous forum web app built with Express, React & MongoDB

Home Page: https://course-forum.herokuapp.com

HTML 5.78% JavaScript 74.86% CSS 19.36%

course-forum's Introduction

Course Forum

Web app for university students to discuss courses, created as a hobby project. The idea for this project was influenced by Jodel, which lets its users send anonymous messages to threads visible to everyone.

App is currently hosted at course-forum.herokuapp.com but only a small number of courses from University of Oulu Computer Science and Engineering degree programme is included.

Functionalities

View courses

View all courses available for discussion

Threads

View and create message threads under courses.

Messaging

Browse and send messages to threads. To prevent spam, each user can send one message every 3 minutes.

Technologies

Tech stack used to create Course Forum:

Component What was used?
Frontend React, CSS
Backend ExpressJS
Database MongoDB Atlas

API endpoints

Data from these endpoints is returned as JSON objects

GET:

  • /api/courses
    • Get all available courses in database
    • Returns {id: String, name: String}
  • /api/courses/{course_id}
    • Get threads in course specified by course_id
    • Returns {id: String, name: String}
  • /api/courses/{course_id}/{thread_id}
    • Get messages in thread specified by thread_id located in course course_id
    • Also checks if user can participate in discussion and returns the result of this check in canParticipate
    • Returns {topic: String, canParticipate: boolean, messages: Array}

POST:

  • /api/courses/{course_id}
    • Start a new thread in specified course
    • Body expected: {threadName: String}
  • /api/courses/{course_id}/{thread_id}
    • Post a new message to a thread
    • Body expected: {message: String}

course-forum's People

Contributors

ekelhala avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.