Web App Development Session 1 - Getting Started. Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola



Similar documents
Microsoft Expression Web

Remote Access End User Reference Guide for SHC Portal Access

Install and End User Reference Guide for Direct Access to Citrix Applications

SHC Client Remote Access User Guide for Citrix & F5 VPN Edge Client

SMS for Outlook. Installation, Configuration and Usage Guide

Web Design Contract. Summary: What do both parties agree to do? Date: [date] Between us [company name] and you [customer name]

So you want to create an a Friend action

CEFNS Web Hosting a Guide for CS212

Outlook Data File navigate to the PST file that you want to open, select it and choose OK. The file will now appear as a folder in Outlook.

Microsoft Expression Web Quickstart Guide

Reading an sent with Voltage Secur . Using the Voltage Secur Zero Download Messenger (ZDM)

Setting Up a Development Server

Welcome to MailChimp.

Application Note. Building a Website Using Dreamweaver without Programming. Nan Xia. MSU ECE 480 Team 5

Blueball Design Dynamic Content 2 Stack Readme Manual v1.0

educ Office Remove & create new Outlook profile

Step 1: Download and install the CudaSign for Salesforce app

FREE VERSION. Created by: Jason Nesbitt Mobile App Development Guide

RIMS Community Microsite Content Management System Training

7 6.2 Windows Vista / Windows IP Address Syntax Mobile Port Windows Vista / Windows Apply Rules To Your Device

Google Sites: Creating, editing, and sharing a site

Secure File Transfer Help Guide

SpringCM Troubleshooting Guide for Salesforce

Website Development Komodo Editor and HTML Intro

SM Wedding Userguide MagenTech [2012]

How to Edit Your Website

Basic tutorial for Dreamweaver CS5

WEBSITE CONTENT MANAGEMENT SYSTEM USER MANUAL CMS Version 2.0 CMS Manual Version

Remote Desktop Web Access. Using Remote Desktop Web Access

New Online Banking Guide for FIRST time Login

HTML Templates Guide April 2014

Remote Access Services Apple Macintosh - Installation Guide

Setting up an Apple ID

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Making a Web Page with Microsoft Publisher 2003

Portal Recipient Guide

NetClient CS Document Management Portal User Guide

How To Connect To the WIT Wi-Fi Using Eduroam CAT Tools

MEAP Edition Manning Early Access Program Hello! ios Development version 14

MAGENTO THEME SHOE STORE

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Quick Reference Guide

Installation & Configuration Guide Professional Edition

date 1/2/2014 eyedea studio ltd and / your name /

Optimal Browser Settings for Internet Explorer Running on Microsoft Windows

Create Signature for the Scott County Family Y

How To Login To A Website On A Pc Or Mac Or Mac (For Pc Or Ipad)

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

Content Author's Reference and Cookbook

ITP 101 Project 3 - Dreamweaver

Working with RD Web Access in Windows Server 2012

Neehr Perfect Educational EHR STUDENT GUIDE

Connecting to Remote Desktop Windows Users

Creating a generic user-password application profile

Google Drive: Access and organize your files

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

Installing and Running the Google App Engine On Windows

SchoolBooking SSO Integration Guide

USING THE INTRO (SPLASH) PAGE

Hypercosm. Studio.

Akita International University Online Application System. Usage Manual

TUTORIAL 4 Building a Navigation Bar with Fireworks

Using the Push Notifications Extension Part 1: Certificates and Setup

Citrix for Mac Installation

ACCEPT THE SECURITY CERTIFICATE FOR THE WEB FILTER

Dreamweaver and Fireworks MX Integration Brian Hogan

CAS CLOUD WEB USER GUIDE. UAB College of Arts and Science Cloud Storage Service

NEC CLOUD STORAGE. Demo Guide

Counters & Polls. Dynamic Content 1

How we use cookies on our website

How do I start a meeting?

TimeTrade Salesforce Connector Administrator Guide

Your First Web Page. It all starts with an idea. Create an Azure Web App

Page1. Tera Doty-Blance

Create a GAME PERFORMANCE Portfolio with Microsoft Word

HTML Egg Pro. Tutorials

Website Design Agreement

Yale Software Library

Getting Started with WebSite Tonight

Outlook Web Access Tipsheets

Beginner s Guide to MailChimp

NS Financials. Client Platform Guide for Mac Using Safari Incl Citrix Setup As A Local Client

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

contract Between me [Joe Schaefer, Web Consultant] and you [client] Summary:

Getting Started with Automizy

Client Portal User Guide

How To Create An Intranet Site On A School Computer (For A School) On A Mac Or Pc Or Ipad (For Pc Or Mac) On An Ipad Or Ipa (For Mac) (For Ipa) On Pc

WHAT'S NEW WITH SALESFORCE FOR OUTLOOK

Getting Started Guide

ONLINE ACCOUNTABILITY FOR EVERY DEVICE. Quick Reference Guide V1.0

Zotero. Zotero works best with Firefox, but Google Chrome and Safari may be used standalone.

Appendix A: Encrypting a File and / or Message

mystanwell.com Installing Citrix Client Software Information and Business Systems

Build Your Mailing List

Wiki Server. Innovative tools for workgroup collaboration and communication. Features

GOOGLE DRIVE Google Apps Documents Step-by-Step Guide

How To Install the Virtual Learning App

Student Getting Started Guide

Getting Started with SurveyGizmo Stage 1: Creating Your First Survey

Enterprise Analytics. (Also known as Pyramid Analytics or BI Office) Supported Operating Systems and Internet Browsers

Transcription:

Web App Development Session 1 - Getting Started Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola

Tools We Use Application Framework - Compiles and Runs Web App Meteor (install from https://www.meteor.com/) Source Code Editor - Changes Web App Notepad++ (Windows, https://notepad-plus-plus.org/) TextWrangler (OSX, http://www.barebones.com/products/textwrangler/) Command Prompt - Runs Tools, Utilities Start -> Run -> cmd (Windows) Programs -> Terminal (OSX) Browser - Runs and Displays Web App Google Chrome Microsoft Edge Mozilla FireFox Apple Safari

Before We Start... To make sure Meteor is working, open a command prompt and type meteor (without the quotes), then press enter to see whether Meteor is running and what version is running. Get your local IP address by typing ipconfig (without the quotes), then press enter. Your IP will be listed as IPv4 Address, be sure to write it down so other people can help you test your application. You ll need to do this each session, as your IP will change! Create a folder on your desktop called CoderDojo, we ll be putting our projects here so they re easy to find. Make sure that you have Notepad++ or TextWrangler installed and working.

Getting Started Start a command prompt in your CoderDojo folder on the desktop: On Windows, open the CoderDojo folder in Explorer, press ALT+D, type cmd (without the quotes), and press enter. On OSX, start a Terminal, then type cd ~/Desktop/CoderDojo (without the quotes) and press enter. Create a new Meteor App with the Meteor tool: In the command prompt (or Terminal), type meteor create YOURNAMEapp (without the quotes, change YOURNAME to your name like charlesapp ) and press enter. In the command prompt (or Terminal), type cd YOURNAMEapp (without the quotes, change YOURNAME to your name like charlesapp ) and press enter. In the command prompt (or Terminal), type meteor run (without the quotes) and press enter. Test your Meteor App! In your browser, visit: http://localhost:3000/ and play around with the App!

What Makes a Meteor App? A Meteor App is a combination of JavaScript, HTML, and CSS files. If you look in the YOURNAMEapp folder, you should see: YOURNAMEapp.css - the CSS code that controls the style and feel of your App. YOURNAMEapp.js - the JavaScript code that controls the behavior of your App. YOURNAMEapp.html - the HTML code that controls the layout of your App..meteor - a folder full of Meteor configuration stuff. You can set a lot of options in these files, but usually won t need to! Meteor Apps can also contain stuff like images, sounds, fonts, etc. in a folder called public that you can create yourself. Anything inside of the public folder is accessible without logging in, so don t put anything private in here! Under the covers, all the data you want to store is in MongoDB.

Editing Your App - Styles Open up YOURNAMEapp.css and take a look - it s blank! Editing the look and feel (styles) of your App is as simple as changing CSS:

Editing Your App - Layout Meteor Apps use very simple HTML, and it can all be in one file! The Meteor Framework splits this file by section, each section is called a Template. Any parts of your HTML that are inside <template> tags can be used in the rest of your HTML like snippets or add-ins. Use a template like this: {{> templatename}} The {{> templatename }} part gets replaced with everything in between the <template name= templatename > and </template> tags. Don t forget to set a template name, or you ll just see the {{> wrongname}} on your App! You can use templates over and over in your HTML. Why would we want to do that? Also, you can add {{functionname}} tags to your HTML, which are replaced with the current value of the named function in your JavaScript (we ll see that in a sec). Meteor makes Single Page Apps - SPAs - so your browser doesn t refresh and you don t have to worry about separate HTML pages for everything.

Editing Your App - Layout (continued) Open up YOURNAMEapp.html and take a look! Make some changes to customize it just how you want!

Editing Your App - Behavior Meteor Apps use JavaScript for all of their code. There is a whole lot of stuff to learn here, so for now we ll focus on variables and functions. Variables are places you can store (and update) a piece of information like some text, a number, or maybe a list of dates. You give each variable a name, which makes it easier to keep track of. Variables come in a lot of flavors that work differently. Right now our Apps use session variables, and we ll cover the other types later. Functions are pieces of code that return or update variables, usually they do math and moving around data. You can think of Functions as questions, and Variables as answers.

Editing Your App - Behavior (continued) Open up YOURNAMEapp.js and take a look! Make the changes you see below and see if you can get things working:

Editing Your App - Discussion What does the following code snippet do? 'click button': function () { // increment the counter when button is clicked Session.set('counter', Session.get('counter') + 1); } Does anyone know how we d change the background on our App? Are there multiple ways to do this? Where would we put an image if we wanted to use one? How would you show more than one button or counter on the App? What happens when you press the buttons separately? What happens to multiple counters when you press the button(s)? What happens when you make a mistake in your Meteor App? How do you know where the mistake was?

Error Messages Errors happen! Don t worry! The error messages in Meteor aren t always super useful, Google can help. This error is where I put an invalid character - - into the code. Unexpected Token means invalid character(s) The error message says charlesapp.js:6:26, which means check the charlesapp.js file, where the error is on line 6 and at character 26. Meteor will automagically restart once you ve fixed the error. Pro Note: If you run into an error, fix it before you continue! You ll thank yourself later when you re not trying to find and fix 10 errors at once!

Homework! See if you can change other parts of your web app! Here are some ideas: Can you make your App double the number every time you click the button? Can you add more counting buttons App, and display counts separately? Can you add a background image to your App? How about changing the title font and color? Extra Credit: Can the App remember what the last number was, even when you turn it off or use it from a different computer?

The End Thank you for coming! See you next week! Charles Armour of AppRiver - charles@charlesarmour.com Ryan Knee of AppRiver - hello@ryanknee.com https://www.meteor.com/ Please visit the Meteor website, it s got great tutorials!