GithubHelp home page GithubHelp logo

mobileweb's Introduction

Environment Setup

This project uses Yeoman to manage workflow. So we need to install Yeoman first. Here is a short guide:

  • Install Node.js.

    • If you are on windows, you can go to Node.js official site, download and install following the wizard.

    • If you are on Mac OS, you can use Homebrew to install Node.js:

        brew install nodejs
      
  • Install Yeoman. After Node.js has been installed. It's time to install Yeoman. Open up a command line window, and enter the following command:

      npm install -g yo
    

Note the -g (global) option.

  • Install Grunt. The build tool used by Yeoman.

      npm install -g grunt-cli
    
  • Install Bower. Front-end dependency management tool.

      npm install -g bower
    
  • Install Ruby. Required by compass.

  • Install Compass.

      gem update --system
      gem install compass
    

Use RubyGems TaoBao, if you have problem in connecting to official gems site.

Project Setup

After setting up the development environment, we are ready to setup our project. First we need to checkout the project.

Checkout Project

We host our project on the GitHub.Fortunately, GitHub supplies their clients for both Windows and Mac OSX platforms. So you can simply use the GitHub client to checkout the project.

You can also use git command line tools. Maybe you need to install git first if you have not has git installed on your system. Then, fire up a command line window:

git clone https://github.com/%username%/MobileWeb.git MobileWeb

Replace %username% with your GitHub username.

Note, we use the team repository as our central repository shared by all team members. To avoid messing this repository up, we encourage you to fork this repo to your personal account. And when you are sure your code is ready to share with others, you can issue a pull request to the central repository. All team members can (and should review) this pull request.

Install Dependencies

Next, navigate to the project directory and install dependencies:

npm install

If you are on windows, you maybe encounter a error complain that failed to fetch PhamtomJS. This is a network issue, you can ignore this error now.

Install front-end dependencies:

bower install

All dependencies have been resolved.

Start Server

OK. We are ready to go. Yeoman supplies a built-in server. You can run

grunt serve

to start this server. Yeoman watches files, if any modification happens then this server will reload automatic.

mobileweb's People

Contributors

iissnan avatar joahcn 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.