https://github.com/pipizhang/mini-twitter
A mini twitter web app base on Laravel 4
https://github.com/pipizhang/mini-twitter
bootstrap laravel4 mysql php
Last synced: 4 months ago
JSON representation
A mini twitter web app base on Laravel 4
- Host: GitHub
- URL: https://github.com/pipizhang/mini-twitter
- Owner: pipizhang
- Created: 2017-11-08T14:19:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T14:21:32.000Z (over 8 years ago)
- Last Synced: 2025-02-27T03:14:18.997Z (over 1 year ago)
- Topics: bootstrap, laravel4, mysql, php
- Language: PHP
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Mini Twitter
## Requirements
------------
- PHP 5.3.3+, MySQL.
- Composer (https://getcomposer.org/download/)
## Installation
------------
### 1. Install dependencies via composer:
Run composer command in "twitter" folder, assume componse install in /usr/local/bin
shell> /usr/local/bin/composer install
### 2. Change the folder permissions for the storage folder:
shell> chmod 777 -R app/storage
### 3. Configure database
shell> vim app/config/database.php
```php
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'twitter',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
```
### 4. Initilaize application
shell> php artisan migrate:install
shell> php artisan migrate
shell> php artisan db:seed
### 5. Run application
#### Option 1 (PHP server)
shell> php artisan serve
Open http://localhost:8000 in browser
#### Option 2 (Apache)
ServerName www.example.com
DocumentRoot "/var/sites/twitter/public"
### 6. Some user for test
Users: peter,benjamin,johan,mason,jacob,madison,jackson,amelia,lily,samuel
Password: 123456