DART Starter-linux Development environment

Source: Internet
Author: User

DART Starter-linux Development environment

Before the beginning of the text, I hope you can look at this paragraph, I first heard that Dart was in last May, that period of time work relatively busy, on the internet to see the "Google Demo use Dart development Android app", and then began to understand, and met a lot of friends, including "Hippo", he said: " Dart All the information is in English, we need to build a Chinese community, so that more people understand, learn it. "

Then he really built the Dartlang Chinese community, I thought I should also be able to do something, so I organized a few friends on the official dart documents to Chinese, but they are mostly on a whim to join the Chinese group, the Han group from the beginning of several people, to the remaining two people, and then to a person ... Finally can only give up.

Indeed, the project of the official Chinese document was too great, so I began to write tutorials on csdn, beginning in June, until August, when Google gave up the wind of Sky (the development of the DART framework for Android apps), and Sky had no more movement since its release. I began to wonder if the things I had done were meaningful, and I was getting busier at work.

Just a few days ago, inadvertently opened the "hippo" created by the Dartlang Chinese community, found that he has been insisting on writing dart tutorials, even if only more than 10 people concerned. And found Google re-engaged in a flutter (developing the DART framework for mobile apps). So think slowly to leave before the pit filled, update the previous tutorial, change the big things will be re-written, finally hope that we can go to the "Hippo" forum to see, he wrote the tutorial really good.

What is Dart?

The first thing to make clear is that Dart is a small language that is currently not available for real project development ...

I'll simply say Dart's current application scope, if you want to see the specifics, Dart website-Portal

    • Server:
      • Dart can be a standalone server, or it's pretty reliable.
    • Web applications:
      • Dart can replace Javascrip to make front-end development more efficient and more convenient
      • Because Dart can also be a server, developing a Web project requires only Dart + HTML5 + CSS3 to get it done.
      • The biggest drawback is that currently only chromium browsers support DART and no other browsers support
    • Mobile apps:
      • Flutter, a dart framework that can be used to develop Android and iOS applications, is currently in the experimental phase
    • Game development:
      • STAGEXL, a DART framework for developing 2D games, is currently in the experimental phase
Installing the SDK under Linux

Choose to install under Linux, mainly considering that flutter currently only supports the development of Linux (64-bit) and Mac systems, the system I use is Ubuntu 16.04 LTS, note is 64-bit.

Download the Dart SDK

Official website (recommended)-Portal
Dartlang Chinese Community-Portal

Installing the Dart SDK

The files you see after downloading should look like the following

Open terminal, move to the directory where the file is located, execute the following command

sudo dpkg -i dart_1.15.0-1_amd64.deb

After successful execution, you can verify that the installation was successful by the method shown

Hello World!

Create a new Test.dart file in any location and enter the following code

void main(){    print("hello world!");}

After saving the file, open the terminal, move to the directory where the file is located, execute the following command

dart test.dart

DART Starter-linux Development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.