Github镜像

visuddhinanda 2fa7d0f2d5 Merge branch 'laravel' of https://github.com/visuddhinanda/mint into laravel 4 lat temu
app cbd000d6e5 :tada: 完成 install:wbwtemplate 4 lat temu
bootstrap fd829c1f6d :tada: move to laravel 4 lat temu
config fd829c1f6d :tada: move to laravel 4 lat temu
database 157c3ffa12 删去sql function FUNCTION query_pali 4 lat temu
docker 283e9d2719 移动docker到根目录下 4 lat temu
public 2fa7d0f2d5 Merge branch 'laravel' of https://github.com/visuddhinanda/mint into laravel 4 lat temu
resources d70abb12e9 view 测试 4 lat temu
routes d70abb12e9 view 测试 4 lat temu
storage 38b1c57855 :sparkles: 添加依赖项目目录 4 lat temu
tests fd829c1f6d :tada: move to laravel 4 lat temu
v1 283e9d2719 移动docker到根目录下 4 lat temu
.editorconfig fd829c1f6d :tada: move to laravel 4 lat temu
.env.example fd829c1f6d :tada: move to laravel 4 lat temu
.gitattributes fd829c1f6d :tada: move to laravel 4 lat temu
.gitignore 87828f1bd4 add *.lock 4 lat temu
.gitmodules 55ed866901 add git submodule 4 lat temu
.styleci.yml fd829c1f6d :tada: move to laravel 4 lat temu
LICENSE 83377bd153 增加许可证 4 lat temu
README.md 5b8df46fad :memo: 补充完整安装 4 lat temu
artisan fd829c1f6d :tada: move to laravel 4 lat temu
composer.json fd829c1f6d :tada: move to laravel 4 lat temu
package.json fd829c1f6d :tada: move to laravel 4 lat temu
phpunit.xml fd829c1f6d :tada: move to laravel 4 lat temu
server.php fd829c1f6d :tada: move to laravel 4 lat temu
webpack.mix.js fd829c1f6d :tada: move to laravel 4 lat temu

README.md

IAPT Pali Canon Platform

About

这是一个开放的基于语料库的巴利语学习和翻译平台。

后端:

  • PHP 8.0+
  • laravel 8.x
  • PostgreSQL v12+
  • Redis

前端

  • jQuery

安装

开发工具

PostgreSQL

最小版本v12。下载链接 https://www.postgresql.org/download/

温馨提示:windows环境安装完之后 将 安装目录/bin加入环境变量 PATH。重启电脑。在命令行输入psql -v 查看版本号。

PHP 8

Redis

Fork

Fork https://github.com/iapt-platform/mint 到你自己的仓库

Clone

git clone https://github.com/<your>/mint.git  --recurse-submodules

修改配置文件

复制 .env.example -> .env

修改db配置

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=mint
DB_USERNAME=postgres
DB_PASSWORD=

复制 public/.env.example -> .env

复制 public/app/config.example.php -> config.php

复制 public/app/config.example.js -> config.js

修改相关配置

复制巴利语全文搜索单词表

获取pg share dir

pg_config --sharedir

把下面/usr/share/postgresql/14替换为你自己的shardir

liunx

sudo cp ./public/app/fts/pali.stop /usr/share/postgresql/14/tsearch_data/
sudo cp ./public/app/fts/pali.syn /usr/share/postgresql/14/tsearch_data/

windows

cp ./public/app/fts/pali.stop /usr/share/postgresql/14/tsearch_data/
cp ./public/app/fts/pali.syn /usr/share/postgresql/14/tsearch_data/

数据库迁移

在根目录下运行

php artisan migrate

语料数据库填充

liunx

cd public/deploy
sh ./install.sh

window

cd public/deploy
./install.bat

运行时间较长。本地开发环境大约4小时。

运行dev server

php artisan serve

在浏览器中访问

http://127.0.0.1:8000