All Projects → cheikh-wang → LazyWaimai-Api

cheikh-wang / LazyWaimai-Api

Licence: other
基于Yii2框架的LazyWaimai Api端,REST API架构风格的,使用Oauth2进行身份认证

Programming Languages

PHP
23972 projects - #3 most used programming language
PLpgSQL
1095 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to LazyWaimai-Api

Rageframe2
一个基于Yii2高级框架的快速开发应用引擎
Stars: ✭ 1,553 (+3597.62%)
Mutual labels:  yii2, restful-api
yii2-admin-template
Yii2 application template targeted for backends.
Stars: ✭ 17 (-59.52%)
Mutual labels:  yii2
node-crudapi-ts
CRUD boilerplate for create Node Restful API's with Express Framework and Sequelize ORM written in Typescript.
Stars: ✭ 41 (-2.38%)
Mutual labels:  restful-api
spring-interview-questions
500+ Spring-Boot Interview Questions
Stars: ✭ 269 (+540.48%)
Mutual labels:  restful-api
yii2-command-bus
Command Bus for Yii2
Stars: ✭ 56 (+33.33%)
Mutual labels:  yii2
questionnaire online
springboot+mybatis在线问卷系统
Stars: ✭ 147 (+250%)
Mutual labels:  restful-api
yii2-elasticsearch
Elasticsearch client based on official Elasticsearch PHP library
Stars: ✭ 14 (-66.67%)
Mutual labels:  yii2
DEEPaaS
A REST API to serve machine learning and deep learning models
Stars: ✭ 26 (-38.1%)
Mutual labels:  restful-api
express-routes-versioning
Node.js module provides versioning for expressjs routes/api
Stars: ✭ 57 (+35.71%)
Mutual labels:  restful-api
rocket-rest-api-with-jwt
A Rusty Rocket fuelled with Diesel and secured by JWT
Stars: ✭ 62 (+47.62%)
Mutual labels:  restful-api
shadowsocks-restful-api
Secure, reliable, standard restful api for managing shadowsocks-libev
Stars: ✭ 72 (+71.43%)
Mutual labels:  restful-api
yii2-emoji
😄 this is a emoji extension of yii2.
Stars: ✭ 17 (-59.52%)
Mutual labels:  yii2
roundup
un-official mirror of http://hg.code.sf.net/p/roundup/code -- used for CI. Please visit https://issues.roundup-tracker.org for finding starter issues or log new issues.
Stars: ✭ 20 (-52.38%)
Mutual labels:  restful-api
yii2-ion-slider
Easily customizable range slider with skins support.
Stars: ✭ 21 (-50%)
Mutual labels:  yii2
lumen-api-starter
A starter project to develop API with Lumen 8.*
Stars: ✭ 42 (+0%)
Mutual labels:  restful-api
SimpleGlip
A simple Glip client with RESTful API
Stars: ✭ 20 (-52.38%)
Mutual labels:  restful-api
yii2-saml
Connect Yii 2 application to a Saml Identity Provider for Single Sign on
Stars: ✭ 34 (-19.05%)
Mutual labels:  yii2
luya-module-admin
Administration base module for all LUYA admin modules
Stars: ✭ 45 (+7.14%)
Mutual labels:  yii2
spreadsheet
Yii2 extension for export to Excel
Stars: ✭ 79 (+88.1%)
Mutual labels:  yii2
vsphere-automation-sdk-.net
[DEPRECATED] Please see README. C# samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
Stars: ✭ 67 (+59.52%)
Mutual labels:  restful-api

LazyWaimai-Api

此项目是懒人外卖(本人用来练手的项目,类似于百度外卖,美团外卖和饿了么的系统)的API端,为Android客户端提供API服务,基于 Yii2 框架实现的。

环境条件

  • PHP版本必须大于或等于php5.4

部署

windows环境下部署

1.准备工作

搭建好WampServer服务器环境

教程可参考按照windows下通过Wamp搭建服务器环境.doc

安装好php的包管理工具composer

教程可参考windows下安装composer.doc

安装好git

教程自行百度

2.clone代码

假设在上一步准备工作中WampServer被安装在了D:/wamp目录下

打开cmd,以此输入以下命令

d:
cd wamp/www
git clone https://github.com/cheikh-wang/LazyWaimai-Api.git
cd LazyWaimai-Api

3.安装依赖

composer global require "fxp/composer-asset-plugin:^1.3.1"
composer install

4.配置数据库

导入sql文件到数据库

参考导入sql文件.doc

配置数据库

打开config/db.php文件,修改username和password(mysql密码默认为空)

<?php

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=lazy_waimai',
    'username' => 'root',
    'password' => '',
    'charset' => 'utf8',
];

5.其他配置

1.短信服务的配置

本项目的短信服务是使用的云之讯,请自行注册账户并按如下方式配置:

编辑config/web.php

'ucpass' => [
	'class' => 'app\components\Ucpaas',
    'accountSid' => '修改为你的云之讯Account Sid',
    'token' => '修改为你的云之讯Auth Token',
    'appId' => '修改为你的云之讯应用ID',
    'templateId' => '修改为你的云之讯短信模板ID',
],
2.七牛云的配置

本项目的图片上传服务是使用的七牛,请自行注册账户并按如下方式配置:

'qiniu' => [
	'class' => 'app\components\QiNiu',
	'accessKey' => '修改为你的AccessKey',
	'secretKey' => '修改为你的SecretKey',
	'bucket' => '修改为你的空间名',
	'domain' => '修改为你的域名',
],

到此项目部署完成,请在浏览器中输入http://localhost/LazyWaimai-Api/Web进行查看

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].