-
- Our goal is to create a platform for everyone to talk with. You can talk to people around the world by using message-board. Sign up or Sign in to enjoy our service!!.
- users can
post article
,leave a comment or reply
, and will have apersonal account center
to check your total posts , comments and replies
-
-
- ubuntu 16.04 LTS
- apache 2.4.18(Ubuntu)
- php 7.0.30-0ubuntu.16.04.1 (cli) ( NTS )
- mysql Ver 14.14 Distrib 5.7.22 for Linux(x86_64)
-
git clone https://github.com/ambersun1234/message-board.git ~/Documents/www
-
sudo vim /etc/apache/apache2.conf
change
<Directory /var/www/> Options FollowSymLinks AllowOverride None Require all granted </Directory>
to
<Directory /home/YOUR_USERNAME/Documents/www/message-board> Options FollowSymLinks AllowOverride None Require all granted </Directory>
save and exit and
sudo vim /etc/apache2/sites-enabled/000-default
change
DocumentRoot /var/www/
to
DocumentRoot /home/YOUR_USERNAME/Documents/www/message-board
save and exit and do
sudo service apache2 restart
-
- set mysql username = 'root' and password = '1234'
- message board database sql
CREATE DATABASE `message_db`; CREATE TABLE `message_db`.`account` ( `userid` int(11) NOT NULL PRIMARY KEY, `username` varchar(1024) NOT NULL UNIQUE, `password` varchar(1024) NOT NULL, `email` varchar(1024) NOT NULL UNIQUE, `image` varchar(1024) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `message_db`.`comment` ( `userid` int(11) NOT NULL, `postid` int(11) NOT NULL, `commentid` int(11) NOT NULL PRIMARY KEY, `text` varchar(1024) NOT NULL, `date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `message_db`.`post` ( `userid` int(11) NOT NULL, `postid` int(11) NOT NULL PRIMARY KEY, `title` varchar(1024) NOT NULL, `article` text NOT NULL, `date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `boardid` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `message_db`.`reply` ( `userid` int(11) NOT NULL, `commentid` int(11) NOT NULL, `replyid` int(11) NOT NULL PRIMARY KEY, `text` varchar(1024) NOT NULL, `date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
-
- just start your apache and mysql , and type 'localhost' in your web browser
-
- This project is licensed under MIT License - see the LICENSE file for detail