Coder Social home page Coder Social logo

itmuch-miniapp's Introduction

itmuch-miniapp

本项目是 IT牧场 小程序的前端代码,

技术选型 & 鸣谢

预览 & 体验

扫描如下小程序码即可。

首页 个人中心 投稿 扫我体验
小程序 小程序 小程序 小程序

使用说明

1. 安装Node.js

笔者使用的版本是 v8.15.0建议和笔者保持一致

2. 下载本仓库代码

可使用Git下载,也可以直接下载本仓库压缩包,二选一即可。

方式一、使用Git下载代码

git clone https://github.com/eacdy/itmuch-miniapp.git

方式二、用浏览器直接访问如下地址,下载代码

https://github.com/eacdy/itmuch-miniapp/archive/master.zip

3. 修改app信息

修改 project.config.json ,按需修改如下两行

"appid": "修改为你的appid", // 这里提供一个给大家测试:wx5398457df5368458
"projectname": "修改为你的项目名称,尽量用英文",

其中,appid在 微信公众平台 - 开发 - 开发设置中可以找到。

4. 安装 & 启动前端代码

# 安装项目相关依赖
npm install
# 加速:
npm --registry https://registry.npm.taobao.org install

# 开发环境启动部署
npm run dev

# 生产环境构建
npm run build

# 其他,可参考:http://mpvue.com/build/

5. 下载 & 安装微信开发者工具

6. 修改调用API地址

找到src/utils/api.js ,找到

// 后端接口基础路径
export const BASE_API_URL = '';

将其修改为你的后端地址,例如:

export const BASE_API_URL = 'http://localhost:8080';

7. 将代码导入到开发者工具

注意:务必勾选 不校验合法域名...

开发者工具

可以预览啦!

itmuch-miniapp's People

Contributors

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