Giter Club home page Giter Club logo

mpvue-node-wifi's Introduction

FreeFlow

畅享无限WIFI微信小程序,可分享wifi信息,可保存海报打印成贴纸,点击分享链接或扫码免密连接wifi。省去wifi咨询、密码暴露等问题。

项目基于mpvue框架开发前端页面 后端使用node+wafer2+mysql开发。

server目录是node端代码。

扫码体验

说明

连接Wifi:

仅 Android 与 iOS 11 以上版本支持

获取Wifi列表:

iOS 将跳转到系统的 Wi-Fi 界面,Android 不会跳转。

iOS 11.0 及 iOS 11.1 两个版本因系统问题,该方法失效。

目前存在跳转到系统权限设置页面的bug,需要用户点击左上角“设置”返回,然后点击“无线局域网”,最后点击左上解“微信”返回到页面。

BUG

操作步骤

初始化

  npm install vue-cli nodemon -g
  vue init mpvue/mpvue-quickstart freeflow
  cd freeflow
  npm install
  # npm i -D node-sass sass-loader
  # npm i wafer2-client-sdk -S
  npm run dev

  # 安装数据库
  brew install mysql
  mysql.server start
  create database cAuth;

  # 初始化数据库
  cd server
  npm install
  node tools/initdb.js

  # 启动开发环境
  npm run dev

修改配置

服务端配置

  vi server/config.js

可配置是否启动本地调试模式,修改mysql配置

客户端配置

  vi src/config.js

修改host的值,指向开发或生产环境地址,地址可以在微信开发工具-详情-腾讯云状态-开发环境request域名获得。

相关文档:

wafer2-client-sdk

wafer2-quickstart-nodejs

设置nodejs本地开发环境

设置腾讯云Api密钥

服务器部署

mpvue-node-wifi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mpvue-node-wifi's Issues

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.