Giter Club home page Giter Club logo

dfparser's Introduction

README

General:

1. The runtime website, you can refer to http://www.52wapp.com:3000/

Copy and paste your ‘df` command result on Linux system, and then the website will tell you the file system that used more than 80%, with less 2G

2. It's an demo application to learn rails + angularJS + coffeeJS
3. The version is ruby1.9.3, rails 4.1.4

A little more explanation:

1. The frontend framework is MVC with angularJS + CoffeeJS, it just accept the input, and display the output. It will parser the data via a API to ruby to get the parser result.
2. The backend framework is rails, it will render the website to user, and also supply an API to parser the df command result, and return it

The roadmap that I set up the app

Preparetion

  1. Preparetion

a. Find some merterial about Rails, Angular. The followling lik is good tutor for a beginner of Rails + AngularJS totior
https://github.com/asanderson15/rails-angular-tutorial

b. The following link is very good metrial to learn coffeescript
http://coffee-script.org/
  1. Set up the enviroment

a. First I try to openshift.
  a) I create Application on openshift ruby-sjj, but it also requires me to install the rails enviroment on my local machine. That's the nightmare
  b) Install Rails, I got many problems. Can't install rails due the lack of ruby-dev, can't install ruby-dev due g++ extension error, can't install. The I decided to give up windows. After that, I happended read the artical https://ruby-china.org/topics/1020, it proves it's smart move.
  c) The I move to develop on the openshift, after I try create git app, and rails app with permession denied, I believe it's virtual space rather than virtual machien.

Finally, I decided to use my remote virtual machine ubuntu.

b. How to install Rails on Ubuntu
  apt-get update
  apt-get install ruby1.9
  gem install rails
  1. Create App

Create new project dfparser by following the tutior github.com/asanderson15/rails-angular-tutorial

a. Create angular controller under the frontend folder app/assets/javascript
b. Create the main ruby view file
c. Create coffeeJS for send request
d. Create the ruby controller
  Learn the ruby grammer about how to deal with text, the number
  1. Deploy it to the ubuntu

a. I try to deploy it with Nginx, it  pop up there's error, I don't find out the reason.
b. At last, I just deploy it with nohup command.

Please feel free to use a different markup language if you do not plan to run rake doc:app.

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.