Code Monkey home page Code Monkey logo

cookserver's Introduction

说明

此项目是通过Web API构建的http服务 , 为cook配套后端代码,前端代码在这, 线上地址在这

技术栈

三层 (D-B-M) + asp.net mvc WebApi + cors 跨域 + sqlserver

项目运行

1. WebApi / Web.config 第15行 , 设置你自己的数据库连接字符串
<add key="ConnectionString" value="server=.;database=cooking;uid=sa;pwd=123;"/> //这是我的,修改value里的值即可
2. WebApi / Web.config   第82行 , 设置自己的前端路径
<add name="Access-Control-Allow-Origin" value="http://localhost:8080" /> // 这是我的,修改value里的值即可

项目文件布局

.
├── BLL                                 // 数据处理层
├── DAL                                 // 数据访问层
├── DB                                  // 数据库文件
├── DBUtility                           // 数据库连接类库
├── Lib                                 // 需要引用的系统类库
├── Model                               // 数据库表模型
├── Views                               // 数据模型
├── WebApi                              // WebApi
│   ├── App_Start                       // Global.asax配置
│   ├── Controllers                     // 返回数据的控制器
│   ├── Models                          // token 数据结构类
│   ├── Properties                      // 特性集
│   ├── common                          // 公共方法类
│   ├── AuthFilterOutside.cs            // token 验证
│   ├── CrossSiteAttribute.cs           // 跨域设置
│   ├── Global.asax                     // 全局配置文件
│   ├── img.ashx                        // 生成验证码
│   └── Web.config                      // 站点配置文件
├── packages                            // 需要引用的系统类库
├── CookApi.sln
└── CookApi.suo
.

cookserver's People

Contributors

haiyangbg avatar

Watchers

James Cloos 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.