Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

yascmf/api

Repository files navigation

api

基于 Laravel/Lumen 构建的API服务,项目处于开发中,已经初步可以使用。

安装说明

本项目基础数据库表结构兼容原 yascmf/base 项目,提供迁移文件供新项目开发与迁移使用。在原有的 base 数据库表基础上,增加了以下表:

  • members 会员表
  • tags 标签表
  • article_tag_relation 文章与标签关系表
git clone https://github.com/yascmf/api.git
cd api
cp .env.example .env
vim .env
// 修改相关配置,如APP_KEY,数据库账号密码等
// APP_KEY 可以去 http://tool.c7sky.com/password/ 随机生成32位长度的字符串 配置上去
// 生产环境请将下面值设置成如下合适的值
# APP_DEBUG=false
# API_DEBUG=false
// 不清楚 CORS 请参考 http://www.ruanyifeng.com/blog/2016/04/cors.html
// admin.yascmf.com 与 localhost:9528 为 `yascmf/admin` 运行时绑定的域名
# set ACCESS_CONTROL_ALLOW_ORIGIN to your own CROS allowed domains (explode by ',') in production environment, such as
# ACCESS_CONTROL_ALLOW_ORIGIN='https://admin.yascmf.com,http://localhost:9528'
composer install -vvv
php artisan migrate
php artisan db:seed
php -S 127.0.0.1:9999 -t public

二次开发

需要开发者熟悉 PHPLaravel/Lumen 框架。

参考资源:

About

基于 Lumen 构建的 API 服务

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 48

Languages

AltStyle によって変換されたページ (->オリジナル) /