Giter Club home page Giter Club logo

angularcurd's Introduction

全栈项目:一个实现了CURD的SPA

介绍

  • AngularJS实现了SPA

  • NodeJS部署服务器,实现前后端交互

  • 数据库选择MySQL

开发环境项目结构部署

  • bin

    • www --实现判断监听端口
  • models

    • db.js
    • product.js
  • node_modules --文件依赖,允许npm install下载依赖文件

  • public -- Node部署静态文件资源

    • images
    • javascript
    • stylesheets
    • index.html
  • routes --路由模块

    • index.js
    • product.js
  • views 视图模板

  • app.js --NodeJS入口文件

  • package.json 文件依赖和Node配置文件

前端部分

  • ng-repeat

  • ui - router

服务器部分

数据库端介绍

  • 首先要用MySQL在root用户名下建立一个xuxiaoxiang的数据库,建一个名为list的表

  • 创建链接

    • host : '127.0.0.1',
    • user : 'root',
    • password : '',
    • database : 'xuxiaoxiang'
  • 建表

    • list
  • 表的格式

    • 参数 数据类型 字节
    • name char 10
    • phone char 100
    • state char 10

angularcurd's People

Contributors

woshidamaomao avatar

Watchers

huilanga 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.