# SecobseBlog **Repository Path**: secobseblog/SecobseBlog ## Basic Information - **Project Name**: SecobseBlog - **Description**: our team's blog,team member:杨越 14110100206(组长) 樊通磊 14110100213 王福亮 14110100218 刘武朋14110100201 荆筱玮 14110100226 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-08-29 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SecobseBlog This is our team's blog. #### we use - php5.6 - Laravel5.3 - mysql - bootstrap - font-awesome - (maybe need php-gd, php-mbstring) #### team member: - [Gasbylei](https://github.com/Gasbylei) - 樊通磊:负责后台管理模块.具体有用户权限修改,博文编辑及删除功能以及后台登录验证. - [loner11](https://github.com/loner11) - 王福亮:负责用户个人页面和头像上传功能以及网站主页的设计. - [happylwp](https://github.com/happylwp) - 刘武朋:负责博文界面优化以及用户登录注册功能. - [G1enY0ung](https://github.com/G1enY0ung) - 杨钺(组长):负责博文发布删除修改功能,以及整体架构的设计. - [Th0rns](https://github.com/Th0rns) - 荆筱玮:负责类图,用例图的工作,以及博文投票功能. > `/`网站主页 `/admin`管理员登录 `/articles`博文展示页面 `/articles/{id}`单个博文页面 `/profile/{username}`用户个人页面 账号:gasbylei 密码:lei123 所有页面都可用此账号登录. #### 我们的项目是一个博客网站,用户可以注册后发布自己的个人博文.游客可以观看所有人的博文. #### several steps to go: first, you must clone this repo: ``` git clone git@github.com:Secobse/SecobseBlog.git ``` **if you fork this repo, you can continue from here** change the `.env.example` to `.env`, and recommand to set database mysql as below: ``` DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=secobse_dev DB_USERNAME=secobse DB_PASSWORD=dev ``` **recommand**: ``` CREATE USER 'secobse'@'localhost' IDENTIFIED BY 'dev'; GRANT ALL PRIVILEGES ON secobse_dev.* To 'secobse'@'localhost' IDENTIFIED BY 'dev'; ``` next, generate your key: ``` php artisan key:generate ``` you will migrate the table with run: ``` php artisan migrate ``` the default repo not exist your composer vendor dir and the node_modules dir, so you will run: ``` composer install npm install ``` to complie your static file, run:(this command assume you have gulp in your path, if not, you will run `npm install gulp-cli -g`) ``` gulp ``` if you don't have node or npm, please install it. The last, run `php artisan serve`, go to [localhost:8000](http://localhost:8000) every time you pull the update, you must read the commit log to execute optional migarte, composer install or npm install #### 2016.8.31 Update: > Set your reset password successful, you can choose the Mail service provider what you like. By default, you can sign up a [mailtrap.io](https://mailtrap.io) and test for free.Happy use it! You need update you MAIL*** in your **.env** file.For mailtrap you only need a username and a password. #### 2016.9.2 Update: > Add admin manage, you must go into the database, manually set users->isadmin to `1`, then you can login as admin.[localhost:8000/admin](http://localhost:8000/admin)