GithubHelp home page GithubHelp logo

bookstore's Introduction

dangdang

用nodejs + mysql + bootstrap +jquery开发类似当当网的网站

执行步骤

  • 1.mysql新建数据库,运行nodesql.sql 脚本文件
  • 2.config目录下的default.js 配置mysql参数
  • 3.npm install安装依赖
  • 3.最后,运行node index

技术栈:koa2-ejs-jquery混合原生js-bootstrap-mysql ## 目录结构: * 1.config存放默认文件
* 2.lib存放数据库文件
* 3.middlewares存放判断登陆注册与否文件
* 4.public存放样式文件,js,引用bootstrap框架等文件
* 5.routers存放路由文件
* 6.views存放模板文件
* 7.index是程序主文件,定义接口,数据库接口,引用模块等
* 8.package.json项目的配置文件,包括项目名,作者,依赖,模块等
## 安装模块中间件: ` npm install ` * 安装mysql
mysql版本推荐使用5.7以下的,5.7的有个bug,图形化界面推荐使用navicat for mysql * 运行可以安装supervisor(npm install supervisor 项目运行工具,开启后即处于监听模式,修改文件后保存即可,无需再启动项目) ` node index 或supervisor index ` * localhost:8080/home 端口号可自行修改 # 功能模块 * 登录注册 * 个人信息维护、头像等基本信息

es6 -> es5

npm install --save-dev babel-preset-env babel-cli *创建.babelrc文件 { "presets": [ ["env", { "targets": { "node": "current" } }] ] }

bookstore's People

Contributors

janninaweigal avatar

Stargazers

 avatar

Watchers

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