Coder Social home page Coder Social logo

rain2372 / lottery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alicegb/lottery

1.0 2.0 0.0 399 KB

这一个彩票项目(11选5),大量使用 ES6 原生语法,也是为了学习 ES6 而实战的项目。

CSS 9.76% JavaScript 87.98% HTML 2.26%

lottery's Introduction

彩票项目(11选5)

项目演示图片

👉 GitHub: https://github.com/bxm0927/lottery

👉 项目演示地址: http://es6lottery.t.imooc.io

项目简介

这一个彩票项目(11选5),大量使用 ES6 原生语法,也是为了学习 ES6 而实战的项目。本案例通过业务需求分析、项目架构思考、需求划分模块、前端代码编写、部署服务器端程序、前后端接口联调测试、部署上线几个步骤,真实还原实际业务开发流程。

本项目主要功能模块:期号自动更新、倒计时、开售状态、玩法切换、自主选号、随机选号、金额计算、奖金预测等。

技术栈

  • Sass(Scss): 预编译 CSS,方便快捷
  • ES6: 这是以后的趋势,let、const、class、箭头函数、Set Map 数据结构、Promise 等新特性十分实用
  • Gulp: 编写 gulp 脚本完成ES6的自动编译、打包、文件监听、浏览器热更新、模板自动更新、服务热启动等
  • Babel: gulp 的一个插件,实现了 ES6 转 ES5
  • Webpack: 自动编译
  • Express.js: 搭建服务器
  • mockjs: 模拟后端数据,与前端实现数据对接

收获

  1. 初步掌握了 ES6
  2. 领悟了模块化编程的好处
  3. 加深对 gulp 自动化配置的掌握
  4. 了解了一个项目完整的开发流程

Build Setup

# clone the repo into your disk.
$ git clone https://github.com/bxm0927/lottery.git

# run gulp
$ gulp --watch

# visit
$ http://localhost:3000/

lottery's People

Contributors

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