Skip to content

This project is setting up a front-end and back-end for a generic community discussion forum.

Notifications You must be signed in to change notification settings

guptajiten/community-discussion-forum

Repository files navigation

community-discussion-forum

#comdisfo This project is for setting up a front-end and back-end for a generic community discussion forum.

Installation

a. server-node

Database Seeding script : node js/setup/database.js

Start server using:

# Install dependencies
npm install

# Run the node.js server
npm start

b. ui-react

In the comdisfo-ui-react directory, use the command line to type the following:

# Install dependencies
npm install

# Run the node.js server
npm start

In a web browser, go to the url http://localhost:8080/.

Configuration

a. server-node

b. ui-react

Configuration options are set in the file [config.js]

Option Description
apiPath Path for REST API (i.e.: "/api/v1/comdisfo/").

Requesting Information

GET /topics
POST /addcomments

Ordering

GET /topics?order=update_dt.asc

Filtering

GET /topicinfo?topic_id=1

Database (name: comdisfo)

Tables

Table Name Meaning
COMMENT This will be used to store comments
TOPICS This will be used to store all topics of a forum
TOPIC This will be used to store all information about the topic
TOPIC_TAG This will be used to store list of values for Tags

Table - COMMENT

Field Name Type, Meaning
id integer, unique id of comment
topic_id string, parent topic to comment
comment string, comment of user
c_date date, create date
c_uid integer, create user

Table - TOPICS

Field Name Type, Meaning
id integer, unique id of topic
title string, title of topic
tag_id integer, tag for topic
decription string, decription of topic
c_date date, create date
u_date date, update date
c_uid integer, create user
u_uid integer, update user
nb_comments integer, comments id
nb_votings integer, voting count

Table - TOPIC

Field Name Type, Meaning
uuid string, unique id of topic
title string, title of topic
tag string, tag for topic
comments string, of comments separated by a char
created_by string, user uuid
create_dt date, create date
last_update_dt date, last update date
comments_cnt integer, count of comments on topic
complete bool, discussion is complete or not

About

This project is setting up a front-end and back-end for a generic community discussion forum.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published