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