Giter VIP home page Giter VIP logo

zf_foodie's Introduction

zf_foodie(咒法次货)

咒法学派蜜汁程序员出品, 源自咱们军师的点子. 通过这个app, 帮助选择困难症患者决定今天的午餐/晚餐的着落, 妈妈再也不用担心我次神马了!

技术栈

前端使用Hbuilder作为壳, 和喜闻乐见的jQuery

后端使用.NET实现业务逻辑

需要的工具和环境

  • Hbuidler
  • Visual Studio 2010+
  • Mysql 5.6+

如何使用?

下文是在windows环境运行, linux环境还在研究ing...

  1. 克隆仓库

git clone [email protected]:novay55555/zf_foodie.git

  1. 导入数据库, 数据库文件在/front_back/zf_foodie.sql

  2. 增加mysql连接配置, 在/front_back/WebUI/下新建一个'XmlConfig'的文件夹, 并在该文件夹下新建一个Config.xml文件, 写入如下代码, 注意修改keyMySQl_Foodievalue值, 根据自身开发的mysql环境填写用户名, 密码, 数据库名

<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
  <!-- ================== 1:数据库连接相关配置 ================== -->
  <!--数据库软件类型:SQLServer-->
  <add key="ComponentDbType" value="MySQl_Foodie" />
  <!-- 当前数据库名称-->
  <add key="DBName" value="ZF_Foodie" />
  <!-- SqlServer连接字符串:Server=服务器地址;Database=库名;Uid=用户;Pwd=密码-->
  <add key="SqlServer_Foodie" value="Server=.;Database=ZF_Foodie;Uid=sa;Pwd=123456" />
  <!-- MySQl连接字符串:Server=服务器地址;Database=库名;Uid=用户;Pwd=密码-->
  <add key="MySQl_Foodie" value="server=localhost;user id=root;password=;database=foodie" />
</appSettings>
  1. 配置IIS服务器, 并把/front_back/WebUI/作为站点发布到IIS上(这个过程很坑爹, 无法用言语表达), 如果你成功配置了, 在浏览器以IP+端口的形式访问出现弹窗1, Congratulations!!!!!配置参考文章

  2. 管理员的身份开启你的重量级选手Visual Studio201x, 打开front_back项目, 按F5启动项目

  3. 修改/front_end/js/main.js下的MyApp.ajax.url的值, 修改为你自身配置的IIS服务器的IP端口

  4. 使用Hbuilder编辑器打开front_end项目(如有需要, 需要项目右键-->转换成移动app), USB连接手机后, 快捷键ctrl + r使用手机调试

  5. JUST HF! :)

配置IIS遇到的二三坑

我的操作系统的win 7, 据有关专业的童鞋说, 不同的windows系统配置IIS遇到的坑不一样, 我先记录我自己遇到的坑

提示无法执行ASP.NET

以管理员的身份运行CMD, 执行如下指令%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i, 重新安装

enter image description here

这类Temporary ASP.NET files的问题, 主要是因为windows内部的权限问题, 需要对C:\Windows\tempC:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files这两个目录增加IIS_IUSRSNETWORK SERVICE这两个对象, 并且给这两个对象全权控制

参考文章: 猛戳我一下

zf_foodie's People

Contributors

novay55555 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.