Giter Site home page Giter Site logo

pxk2647_cse5335-project-1's Introduction

Name: Purn Prem Kumar

ID: 1001112647

  • What server framework did you choose and why?

I used Node JS express framework for the server in this project. Node JS has a comprehensive communication paradigm with HTTP and for a JavaScript programmer, creating RESTful API in Node JS is pretty sensible and easy to learn as well. Express is the most common Node JS web application framework and is preferred because it adds intuitive view system management process, robust routing tool processing, high executable code for generating applications and various other such Express coding benefits. Considering express is the most popular framework, getting sample codes and understanding the code structure is easier.

  • What client framework did you choose and why?

I used JavaScript Jquery for the client side in this project. JQuery is intuitive and easy to learn, considering the library is built on shorter, simpler code. Using JQuery overcomes the problem of incorrectly rendered parts of the webpage in case Adobe Flash isn't installed. Manipulating the HTML DOM has become the most widely accepted practice of manipulating a Web page so content will be rendered even if JavaScript is disabled in the browser. I opted for JQuery because it is light, works anywhere and the AJAX call using JQuery doesn't face Cross-Origin Resource Sharing (CORS) issues.

  • What aspect of the implementation did you find easy, if any, and why?

I found most of the aspects of the implementation fairly easy to understand. JavaScript has a simple concept and it is interesting the way it can be used to manipulate HTML DOM to create different kinds of webpages. Considering only 'get' part of RESTful API was implementated, the server side was not very difficult to code using Node JS.

  • What aspect of the implementation did you find hard, if any, and why?

I found the implementation of JSON request to the server comparatively difficult. I faced the problem of Cross-Origin Resource Sharing (CORS) during many attempts of requesting JSON data from the server. Finding the JQuery method which should be able to share cross-domain resources took longer than I expected.

  • What components OTHER than your client and server framework did you install, if any, and if so, what is their purpose for your solution?

I have used Google Web Toolkit (GWT) other than the client and server framework in order to display the location of latitude-longitude values in JSON data representing the capitals of the countries with nuclear power, as well as represent the power generated and contribution to domestic need in the form of a bar chart.

  • What Ubuntu commands are required to deploy and run your server?

Make sure you have Node.js and the Heroku Toolbelt installed. Open the Command Prompt Interface.

Log in using the email address and password you used when creating your Heroku account:

$ heroku login

Execute the following commands to clone the application:

$ git clone https://github.com/premkumar010890/pxk26447_cse5335-project-1.git
$ cd pxk2647_cse5335-project-1

Create an app on Heroku, which prepares Heroku to receive the source code:

$ heroku create

Now deploy the code:

$ git push heroku master

The application is now deployed. Ensure that at least one instance of the app is running:

$ heroku ps:scale web=1

Visit the app at the URL generated, open the website as follows:

$ heroku open

pxk2647_cse5335-project-1's People

Contributors

premkumar010890 avatar

Watchers

Steve Emmons avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.