Udostępnij za pośrednictwem


Trip Report: Silicon Valley Code Camp

This last weekend I spoke at Silicon Valley Code Camp -- the biggest code camp in the world! I delivered two sessions that were very well attended -- I think the room held about 50 people and both sessions were filled. Thanks all for coming!

In the first session I focused on building HTML5-based business apps with LightSwitch and deploying them to Azure. There were some familiar faces in the room, but most of the folks I had never met before so it was great to see new people interested in the technology. Most of the developers there were using Visual Studio already. A big handful had downloaded the Visual Studio 2013 RC so that was great to see as well. One person even followed along (in both classes) as I built the demos. The second session drew a lot more SharePoint developers, understandably, since it focused on the new Cloud Business App project in Visual Studio 2013 that streamlines the way you build custom business apps for SharePoint 2013 / Office 365.

Here are the main things I showed in each session as well as links to the demo projects and slides.

Building HTML5-based Business Apps on Azure with Visual Studio LightSwitch   

I based this demo on the Contoso Moving Company Tutorial we released back in April. Here we started with a LightSwitch solution with a desktop client and added an HTML mobile companion client to it. I showed:

  • How to quickly add HTML screens to your solution using the built-in screen templates with no coding required
  • How LightSwitch automatically handles scaling your app based on multiple device form factors
  • Explained the single-page app (SPA) design we use based on jQuery & jQuery Mobile
  • How LightSwitch generates a client-side data model for you based on the data and queries you model on the server
  • How to customize controls and define your own controls using JavaScript
  • How to change the look-and-feel with standard CSS
  • How to define custom web API methods on the server to return JSON to custom controls (I used a Kendo pie chart)

You can get the slides and demos here.

Developing Office 365 Cloud Business Apps with Visual Studio 2013   

I based this demo on the Contoso Foods SharePoint Tutorial we released back in April, but instead I used the Cloud Business App project template to streamline the setup of the SharePoint project. I used an Office 365 developer account which you can get for free if you are an MSDN subscriber (or a free trial if you aren’t). Head to https://dev.office.com to get started.

I showed:

  • The new Cloud Business App project template under Office/SharePoint –> Apps

image

  • How to model SQL data using the data designer and connect that data to SharePoint list data
  • How to write business rules against SharePoint data using the Entity Model that we generate for you
  • How to quickly add HTML screens to your solution using the built-in screen templates with no coding required
  • How to customize controls and define your own controls using JavaScript
  • How to change the look-and-feel with standard CSS
  • The Person business type and API for working with SharePoint users and permissions
  • Automatic row-level Created/Updated tracking
  • How to interact with Office 365 services like workflows and email
  • How to deploy to the SharePoint catalog and make these apps available to your user’s sites

You can get the slides and demos here.

Also here are some more resources to explore:

After my sessions I was in a hurry to make it to Game 2 of the ALDS in Oakland (Go A’s!!) but I did have time to chat for a few minutes and take a photo with many of the Microsoft MVP speakers that were there. Great seeing you all!

1379729_244762032342110_190478065_n

Thanks all!

Enjoy!

Comments

  • Anonymous
    October 30, 2013
    Hello Beth, Thanks for the great work. I am working with VS2013 and Office365 E3 account and I am getting error about side loading apps not enabled. Searches turned up various suggestions including PS scripts to enable, but I thought I would bring it to your attention that if people are going to need to troubleshoot the Side loading apps issue on sharepoint.com, a link to the MS "approved" method fro addressing this should be in a pre-requisite list of any code/sample articles. I still need to solve my issue before I can deploy/publish, but thought I would stop to send this off. Thanks, Dan

  • Anonymous
    October 30, 2013
    Hi Dan, You'll need to publish to a Developer Site first and then from there you can add the app to your SharePoint app catalog. You'll need to set up a site collection based on the Developer Site template. You can go the powershell script route to enable it, but you should only do that on a site you're explicitly using for development.   HTH, -Beth

  • Anonymous
    December 27, 2013
    Hi Beth, Thanks for the great article and making your work available! I am getting error though running the application. I have made all the required changes as you suggested. Also, it would be great if you could point me to some reference on setting up Workflow for Cloud Business Apps. Not getting any relevant direction there. Thanks in advance!