|
|
4 anni fa | |
|---|---|---|
| app | 4 anni fa | |
| bootstrap | 4 anni fa | |
| config | 4 anni fa | |
| database | 4 anni fa | |
| deploy | 4 anni fa | |
| docker | 4 anni fa | |
| public | 4 anni fa | |
| resources | 4 anni fa | |
| routes | 4 anni fa | |
| storage | 4 anni fa | |
| tests | 4 anni fa | |
| v1 | 4 anni fa | |
| .editorconfig | 4 anni fa | |
| .env.example | 4 anni fa | |
| .gitattributes | 4 anni fa | |
| .gitignore | 4 anni fa | |
| .styleci.yml | 4 anni fa | |
| LICENSE | 5 anni fa | |
| README.md | 4 anni fa | |
| artisan | 4 anni fa | |
| composer.json | 4 anni fa | |
| package.json | 4 anni fa | |
| phpunit.xml | 4 anni fa | |
| server.php | 4 anni fa | |
| webpack.mix.js | 4 anni fa |
这是一个开放的基于语料库的巴利语学习和翻译平台。
后端:
前端
工具
使用 Linux 的开发者请参阅 <项目文件夹>/docker/readme.md 容器中包含了全部开发环境。请忽略下面关于开发环境的安装。
最小版本v12。下载链接 https://www.postgresql.org/download/
温馨提示:windows环境安装完之后 将 安装目录/bin加入环境变量 PATH。重启电脑。在命令行输入 psql -v 查看版本号。
建立新的数据库,例如 数据库名为iapt: 在命令行输入
psql -U postgres -h localhost
create database iapt
\q 退出psql
Fork https://github.com/iapt-platform/mint 到你自己的仓库
git clone https://github.com/<your>/mint.git --recurse-submodules
项目根目录下运行
composer install
npm install
/public 目录下运行
composer install
npm install
复制 <项目目录>/.env.example 的一个副本。改文件名为 .env
修改.env,为你的db配置
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=你的数据库名
DB_USERNAME=postgres
DB_PASSWORD=你的数据库密码
复制 <项目目录>/public/app/config.example.php 改文件名为config.php
修改config.php,为你的db配置
define("Database",[
"type"=>"pgsql",
"server"=>"localhost",
"port"=>5432,
"name"=>"你的数据库名",
"sslmode" => "disable",
"user" => "postgres",
"password" => "你的数据库密码"
]);
复制 <项目目录>/public/app/config.example.js 改文件名为 config.js
获取pg share dir 在命令行窗口运行
pg_config --sharedir
Liunx
把下面/usr/share/postgresql/14替换为你自己的shardir
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
复制
到你的 shardir
在<工程目录>下运行
php artisan key:generate
在根目录下运行
php artisan migrate
Liunx
cd public/deploy
sh ./install.sh
Window
cd public/deploy
./install.bat
运行时间较长。本地开发环境大约4小时。
在命令行运行<项目目录>下面的命令
Liunx
cd public/deploy
sh ./redis_upgrade.sh
Window
cd public/deploy
./redis_upgrade.bat
运行时间较长。本地开发环境大约4小时。
php artisan serve
在浏览器中访问
应该出现网站首页