bootcamp - january 2015

29
ASP .NET C# Bootcamp Globant Bahía Blanca

Upload: -

Post on 20-Jan-2017

106 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Bootcamp - January 2015

ASP .NET C# Bootcamp

Globant Bahía Blanca

Page 2: Bootcamp - January 2015

What is MVC?• A design pattern

• Acronym for Model ● View ● Controller

• Separation of concerns

Page 3: Bootcamp - January 2015

What is MVC?

Step 1Incoming request directed to Controller

Request

Controller

Page 4: Bootcamp - January 2015

What is MVC?

Step 2Controller processes request and forms a data Model

Controller

Model

Page 5: Bootcamp - January 2015

What is MVC?

Step 3Model is passed to View

Controller

View

Page 6: Bootcamp - January 2015

What is MVC?

Step 4View transforms Model into appropriate output format

Controller

View

Page 7: Bootcamp - January 2015

What is MVC?

Step 5Response is rendered

Response

Controller

View

Page 8: Bootcamp - January 2015

Hashtag Manager

Page 9: Bootcamp - January 2015

Twitter

The software was divided as followsin order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

Page 10: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

C#

Page 11: Bootcamp - January 2015

Twitter

The software was divided as followsin order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

LINQ

Repository pattern

Page 12: Bootcamp - January 2015

The following illustration shows one way to conceptualize the relationshipsbetween the controller and context classes compared to not usingthe repository or unit of work pattern at all.

int postId = postRepo.GetPostByID(id);PostRepository postRepo = new PostRepository(db);

private TwitterContext db = new TwitterContext();

example

Int postId = db.Posts.Find(id);

vs

Page 13: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

Code FirstEntity Framework

Migration

Page 14: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

Page 15: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

Page 16: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

Page 17: Bootcamp - January 2015

Twitter

The software was divided as follows in order to separate concepts:

• Twitter.DataAccess

• Twitter.WebSite

CSS

RazorHTMLJavascriptAjax

Page 18: Bootcamp - January 2015

Twitter web-aplicattionIn the this live presentation, we will show you main features of our web based Twitter application. It is a kind of hashtag manager.

This proyect is part of our first Globant’s Bootcamp 2015.

This course focuses on Microsoft's ASP.NET framework using C# and common web technologies like HTML/CSS and JavaScript.

Page 19: Bootcamp - January 2015

Welcome ScreenAs many other sites, you can create an account, in this case, to post new tweets and to follow other users. To do that, you have to use options: log in and sign up, at the top-left corner of the main window.

Log inSign up

Page 20: Bootcamp - January 2015

Sign Up ProcessThe register process is quite simple. You only have to provide some basic account information and click Sign up. Later, you will be able to provide another personal information like mobile number or age. By default, these both fields are completed with 0.

Sign up

Page 21: Bootcamp - January 2015

Main ScreenOnce/after you logged in, you have access to the hole top menu. In addition, you can see your posts, if any, in the body window.You can also reach that window clicking on the Tweets menu!

Page 22: Bootcamp - January 2015

Hashtags ScreenIn the menu, next to twitter title, there is the hashtags option. Here, you can look for a particular hashtag typing its name or part of its name. If there are more than one hashtag with the same substring, you will see a list of them.

Page 23: Bootcamp - January 2015

Posts of hashtagIf you click on one of those hashtags, you will get another window with a list of all posts that refers to that hashtag. Moreover, for all posts you can see the owner and the date of creation.

Page 24: Bootcamp - January 2015

UsersThe next option is Users. Here, you can search for a particular user typing its username or mail. Then, if you click on a username, you see all posts of that user.

Page 25: Bootcamp - January 2015

Personal profileThe last menu item is the Profile. Here, you can see your personal details and an option to edit them. In addition, you can see your followers and the people followed by you.

Page 26: Bootcamp - January 2015

Features designed for improvingthe app in the future

• Unit Testing

• Send a notification by mail about referenced users in a post.

• Send a notification by mail to the involvers users in a discussion.

Page 27: Bootcamp - January 2015

Thank you very much Globant• We express our gratitude to Globant Bahia Blanca for giving us the

opportunity to make this Bootcamp so we could be trained in a field in which we are interested in.

• We also want to give an especial thanks to Ariel Reñones, our tutor, for his willingness to queries at any time of day, for supporting us and for encouraging us always to keep going ;)

• We also thanks to Julian Perez Balboni’s attention and politeness.

Page 28: Bootcamp - January 2015

Thank you for your attention!Any questions?

Page 29: Bootcamp - January 2015

Live Demo

Are you ready for the future?