|
|
4 lat temu | |
|---|---|---|
| app | 4 lat temu | |
| bootstrap | 4 lat temu | |
| config | 4 lat temu | |
| database | 4 lat temu | |
| docker | 4 lat temu | |
| public | 4 lat temu | |
| resources | 4 lat temu | |
| routes | 4 lat temu | |
| storage | 4 lat temu | |
| tests | 4 lat temu | |
| v1 | 4 lat temu | |
| .editorconfig | 4 lat temu | |
| .env.example | 4 lat temu | |
| .gitattributes | 4 lat temu | |
| .gitignore | 4 lat temu | |
| .gitmodules | 4 lat temu | |
| .styleci.yml | 4 lat temu | |
| LICENSE | 4 lat temu | |
| README.md | 4 lat temu | |
| artisan | 4 lat temu | |
| composer.json | 4 lat temu | |
| package.json | 4 lat temu | |
| phpunit.xml | 4 lat temu | |
| server.php | 4 lat temu | |
| webpack.mix.js | 4 lat temu |
这是一个开放的基于语料库的巴利语学习和翻译平台。
后端:
前端
最小版本v12。下载链接 https://www.postgresql.org/download/
温馨提示:windows环境安装完之后 将 安装目录/bin加入环境变量 PATH。重启电脑。在命令行输入psql -v 查看版本号。
Fork https://github.com/iapt-platform/mint 到你自己的仓库
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小时。
php artisan serve
在浏览器中访问