Last active
March 9, 2019 06:07
-
-
Save imylomylo/f063396686a4151bf923f4cc7f8a1d8b to your computer and use it in GitHub Desktop.
Dart server mobile web ubuntu18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install apt-transport-https | |
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' | |
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list' | |
sudo apt-get update | |
sudo apt-get install dart | |
echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile | |
logout | |
SERVER | |
pub global activate aqueduct | |
echo 'export PATH="$PATH":"$HOME/.pub-cache/bin"' >> ~/.profile | |
logout | |
aqueduct create ccapidocs | |
... | |
Success. | |
-- New project 'ccapidocs' successfully created. | |
Project is located at /home/mylo/ccapidocs | |
Open this directory in IntelliJ IDEA, Atom or VS Code. | |
See /home/mylo/ccapidocs/README.md for more information. | |
MOBILE | |
cd ~/Downloads | |
wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.2.1-stable.tar.xz | |
cd ~ | |
mkdir ~/development | |
cd ~/development | |
tar xf ~/Downloads/flutter_linux_v1.2.1-stable.tar.xz | |
echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.profile | |
logout | |
flutter config --no-analytics | |
flutter doctor | |
//maybe don't install android studio and use an alternative |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment