// create the application
cordova create PushExample
// go into the application directory
cd PushExample/
// add android
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
# mCAP CLI | |
**The command line interface** | |
[mway.io/cli_intro]mway.io/cli_intro | |
--- | |
## Agenda | |
- Instruction in the mCAP CLI |
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
// npm install cordova | |
var cordova = require('./node_modules/cordova/cordova'); | |
var exec = require('child_process').exec; | |
// create application | |
function create( applicationName, callback ) { | |
cordova.create(applicationName, function(){ | |
// TODO | |
var cp = ('cp ' + process.cwd() + '/' + applicationName + '/config.xml ' + process.cwd() + '/' + applicationName + '/www/config.xml'); | |
exec(cp); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Fernsehturm</title> | |
<link href="style.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="tower-container"> | |
<div class="antennas"> |
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
var firstNames = ['Aaron','Ab','Abba','Abbe','Abbey','Abbie','Abbot','Abbott','Abby','Abdel','Abdul','Abe','Abel','Abelard','Abeu','Abey','Abie','Abner','Abraham','Abrahan','Abram','Abramo','Abran','Ad','Adair','Adam','Adamo','Adams','Adan','Addie','Addison','Addy','Ade','Adelbert','Adham','Adlai','Adler','Ado','Adolf','Adolph','Adolphe','Adolpho','Adolphus','Adrian','Adriano','Adrien','Agosto','Aguie','Aguistin','Aguste','Agustin','Aharon','Ahmad','Ahmed','Ailbert','Akim','Aksel','Al','Alain','Alair','Alan','Aland','Alano','Alanson','Alard','Alaric','Alasdair','Alastair','Alasteir','Alaster','Alberik','Albert','Alberto','Albie','Albrecht','Alden','Aldin','Aldis','Aldo','Aldon','Aldous','Aldric','Aldrich','Aldridge','Aldus','Aldwin','Alec','Alejandro','Alejoa','Aleksandr','Alessandro','Alex','Alexander','Alexandr','Alexandre','Alexandro','Alexandros','Alexei','Alexio','Alexis','Alf','Alfie','Alfons','Alfonse','Alfonso','Alford','Alfred','Alfredo','Alfy','Algernon','Ali','Alic','Alick','Alisander','Alistair',' |