GithubHelp home page GithubHelp logo

chenyao1067915067 / weex-hackernews Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weexteam/hackernews-app-powered-by-apache-weex

0.0 1.0 0.0 8.75 MB

JavaScript 24.70% Shell 0.04% Java 61.56% HTML 0.01% Objective-C 12.79% Ruby 0.02% Objective-C++ 0.03% C 0.68% Vue 0.17%

weex-hackernews's Introduction

Hacker News App

中文版说明文档

A mobile app for Hacker News, which is powered by Weex and Vue.

Preview

Use Weex Playground App to scan the QR code below.

QR Code

The content of this QR code is http://whatever.cn?_wx_tpl=https://raw.githubusercontent.com/weexteam/weex-hackernews/master/ios/assets/index.js , please make sure your phone can assess GitHub.

Compile

Install the dependencies:

npm install

Compile the source code:

  • npm run build # Compile the source code for web platform and native platform.
  • npm run dev # Watch mode for npm run build.

Copy the bundle file:

  • npm run copy:android # Copy generated bundle file to the assets of Android project.
  • npm run copy:ios # Copy generated bundle file to the assets of iOS project.
  • npm run copy # Run both copy:andriod and copy:ios.

More npm scripts will be find in the package.json.

Start Web Service

npm run serve

The server is listening on 1337. Visit http://127.0.0.1:1337/index.html can preview the app on browser.

Run The Android Project

First you should install Android Studio and Android SDK.

Assuming you have configured the Android development environment properly, just use Android Studio to open the project in the android folder, and run the app as other normal Android projects.

Run The iOS Project

First you should setup the iOS develop environment and install the CocoaPods.

Enter the ios path, use CocoaPods to install dependencies:

pod install

Open the project in the ios folder by Xcode, you could run the app on the simulator.

NOTE: If you want to run the app on real device, you also need to setup your own signing configuration.

weex-hackernews's People

Contributors

hacke2 avatar hades-li avatar hanks10100 avatar jinjiang avatar mrraindrop avatar venkatesh3007 avatar

Watchers

 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.