#comdisfo This project is for setting up a front-end and back-end for a generic community discussion forum.
Database Seeding script : node js/setup/database.js
Start server using:
# Install dependencies
npm install
# Run the node.js server
npm start
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 options are set in the file [config.js]
Option | Description |
---|---|
apiPath | Path for REST API (i.e.: "/api/v1/comdisfo/"). |
GET /topics
POST /addcomments
GET /topics?order=update_dt.asc
GET /topicinfo?topic_id=1
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 |
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 |
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 |
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 |