🏆 The second prize of the 12th National College Student Software Innovation Competition (12th Intel Cup)
DLArtist is an artificial intelligence-based typesetting website that automatically typeset articles entered by users, intelligently crop images, and provide automatic generation of illustrations.
Read this in other languages: English, 中文
1. Ubuntu 16.04+
2. nginx
3. swoole
4. mysql 5.5+
5. php 7.1+
6. composer
7. npm
8. python 2.7 & python 3.6
# open cron directory
crontab -e
Here is the only Cron entry you need to add to your server:
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.
APP_NAME=DLArtist
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=redis
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.163.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=dlartist123
MAIL_ENCRYPTION=ssl
[email protected]
MAIL_FROM_NAME=goodfellow
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
- Clone the project to your local directory
- Use
cd
to go to the project folder in your terminal - Run
composer install
in your terminal - Copy the
.env.example
file to the.env
file in the project home directory - Open the
.env
file and change DB_DATABASE to your corresponding database name, DB_USERNAME to the corresponding database user name, DB_PASSWORD to the corresponding user password - Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan serve
- Browser access
localost:8000
More samples can be found in assets
.
Chuyang Zhao, Runzhen Xue, Hao Wu
Please contact my email [email protected] for more information.