All Projects → rahulsahay19 → MovieReview-Angular-Prod

rahulsahay19 / MovieReview-Angular-Prod

Licence: other
This Single Page App created using bunch of technologies. I have used ASP.NET MVC 5 as a base framework. With this I have used Web API, Entity Framework Code First Approach, Unit Of Work pattern, Repository Pattern and design techniques like Single Repository Principle, Factory pattern.... Apart from this I have used Angular framework to write t…

Programming Languages

javascript
184084 projects - #8 most used programming language
C#
18002 projects
CSS
56736 projects
HTML
75241 projects

Labels

Projects that are alternatives of or similar to MovieReview-Angular-Prod

ProtheusDoc-VsCode
Repositório para implementação dinâmica do ProtheusDoc do TDS para VsCode
Stars: ✭ 19 (+26.67%)
Mutual labels:  snippet
vsc html5 boilerplate
This is a Visual Studio Code snippet extension for generating HTML 5 boilerplate code
Stars: ✭ 32 (+113.33%)
Mutual labels:  snippet
carbonara
API for carbon
Stars: ✭ 86 (+473.33%)
Mutual labels:  snippet
meta-theme-sky-color
Js snippet that changes the mobile Chrome nav bar color to the color of the sky based on time of day.
Stars: ✭ 19 (+26.67%)
Mutual labels:  snippet
Ubufundi
Android Code Recipies:Short targeted code snippets to get the job done
Stars: ✭ 16 (+6.67%)
Mutual labels:  snippet
DS-Cookbook101
A jupyter notebook having all most frequent used code snippet for daily data scienceoperations
Stars: ✭ 59 (+293.33%)
Mutual labels:  snippet
add-to-calendar-button
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
Stars: ✭ 697 (+4546.67%)
Mutual labels:  snippet
code-examples-manager
Software tool to manage your notes and code examples, to publish them as gists or snippets
Stars: ✭ 26 (+73.33%)
Mutual labels:  snippet
tailwind-shift
⚙️ Shift to the next TailwindCSS version hassle-free.
Stars: ✭ 114 (+660%)
Mutual labels:  snippet
git-the-lines
A Discord bot that prints out the lines referenced in a GitHub, GitLab, or BitBucket snippet link
Stars: ✭ 37 (+146.67%)
Mutual labels:  snippet
ts-snippet
A TypeScript snippet compiler for any test framework
Stars: ✭ 29 (+93.33%)
Mutual labels:  snippet
DotNetEditor
A VB/C# text editor with the ability to run code and code snippets.
Stars: ✭ 19 (+26.67%)
Mutual labels:  snippet
Navi
An interactive cheatsheet tool for the command-line
Stars: ✭ 10,055 (+66933.33%)
Mutual labels:  snippet
Glorious Demo
The easiest way to demonstrate your code in action.
Stars: ✭ 3,290 (+21833.33%)
Mutual labels:  snippet

Welcome to the Movie Review Application

I have created this app using bunch of client-server side technologies. This SPA is marriage of tons of client/server side app. These are mentioned below.

Client-Side Technologies


  • HTML 5 & CSS
  • Modernizer & LESS
  • Media Queries
  • Responsive Design
  • Angular JS
  • Toastr JS
  • JQuery
  • QUnit JS
  • JQuery.MockJSON
  • Change Tracking
  • And many out of the box things

Server Side Technologies


  • SQL Server
  • Entity Framework – Code First Approach
  • Repository Pattern
  • Unit of Work Pattern
  • Web API
  • JSON & AJAX
  • NuGet
  • Ninject IOC
  • Bundling & Minification
  • POCO Models

Application Live Demo :- Movie Review

When, you come at this page, you will land at home page. Below is the screen shot for the same.

Above shown screen shot is the home page of the app. Now, when you click on the Movies link, it will take you to the below shown page.

Once, page gets loaded, little toast message at the bottom right of the screen pops up saying Movies Fetched Successfully. Now, from this screen you can do all the CRUD Operation. Here the very 1st link is Add Movie, which will give user flexibility to go ahead and add any new movie as shown below.

Now, let’s suppose if we try to post the Form as it is blank, then it won’t allow, because above fields are required as marked by its CSS color and star mark as well. Now, once I enter any information, different validation will get triggered

Even at this moment I cannot submit the form as the form is invalid. Once, I modify and enter valid details, then form error messages and its error color (Red) will disappear.

Now, at this instant I can go ahead and submit the movie. Once I click submit button; one toast message will appear saying Data Saved Successfully and will get redirected back to movies link.

Next is the Edit link corresponding to the movie. When you click on this, it will present the below screen for editing the same.

Here, also each and every validation will be there, what we have seen during creation. However, you can go ahead and edit anything over here, let’s say I change the year to 2002 and update.

Once I update the movie it will save the same in database and then get redirected to Movies link as shown below.

However, let me change the same back to the original one as it’s not correct. Similarly, you can go ahead and delete the movie from the Edit link as well. Next to Edit link, there is link for Reviews as well. From this link you can go ahead and add new review as shown below.

Here, when I click on Add New Review, it will take me to the below form.

Above form has also got different set of validations as shown below.

Once done all the corrections, it will be like this

After successful, submission, it will redirect back to the movies link.

After adding Review, position of newly added movie moves up in the list as behind the scene order by clause is working on total no of reviews. Now, when I click on the Reviews link again, it will show me the review which I have added.

Here, corresponding to the Review, new Edit link also got enabled for editing or deleting the Review. This also works same what I explained above for Movie. About App link lists all the details of the application like what technologies used what tools you need, where to download the code etc….

I have also used QUnit Library to test my Web APIs. Below is the glimpse for the same.

When you click on any individual test, it will present you the detailed results as shown below in the screen shot.

And if there is anything wrong with any end points, let’s suppose that doesn’t exist; easiest way to break the test, then it will be like

You can also verify these APIs like shown below

http://moviereview.rahulsahay.com/api/moviereviews

http://moviereview.rahulsahay.com/api/movies

Similarly different endpoints can be tested. Apart from Web API tests. I have also used Jasmine to test my Angular code. You will also learn how to test client side JavaScript code with Visual Studio. Here, I have used Chutzpah to integrate JavaScript Tests with Visual Studio. Below is the glimpse for the same.

http://myview.rahulnivi.net/wp-content/uploads/2015/02/194th.png

Now, when I check code coverage results for my tests, Chutzpah will open a new window in browser with the code coverage results for the client side as shown below in the screen shot.

The ones which are highlighted in red are the ones which are not covered 100%, so when I click on any of this link, it will open the code in browser and show what is covered and what is not

Glimpse of Movie Review Solution:-

Let me go ahead and show you the solution structure of finished app. Below in the screen shot, I have 5 different projects. Each is having its on dependency and responsibility.

Here, the highlighted one is the web project which is dependent on other infrastructure projects Data, Contracts and Model. Data project is the place where in you maintain initial seed data, Entity Framework DBContext and many more things involve direct interfacing down the layer with database. Data Contract is the place where in you manage your repositories and apply Unit of Work Pattern on repositories like movies and moviereviews. Model is the place where you will be having your POCOs (Plain Old CLR Objects). This is the place where in you are maintaining all properties attributed to the tables. Below is the glimpse of all projects in its expanded form.

You can also test WEB API Live here at API TEST


Check App overall performance:-

GT1

GT2

GT3

Thanks for joining me.

Happy Coding

Rahul Sahay

My View

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].