Skip to content

gopinathsjsu/Spartans-Airlines-team10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spartans Airlines - Team 10

Team Members:

Divya Mohan
Saurabh Vijaywargia
Shakthivel Ramesh Nirmala
Shravan Vallaban

Technology Stack:

  • Frontend - ReactJS, Redux
  • Backend - ExpressJS
  • Database - MongoDB
  • Cloud - AWS
  • Load Balancer - AWS Elastic Load Balancer
  • Postman - API Testing
  • Project Management Tools:
    • GitHub - Source code and Project Management
    • Google Sheet - Tracking tasks and sprint burndown charts
    • Zoom - Team collaboration (Organizing daily scrum meetings)

Architechture Diagram:

UI Wireframes:

Deployment Diagram:

Deployment Diagram

Design Decisions:

  • Database : Why NoSQL?

    • In general we chose NoSQL because they support their own access languages that can interpret the data being stored, rather than require a relational model within the underlying database.
    • This more developer-centric mentality to the design of databases and their access application programming interfaces (API) are the reason NoSQL databases have become very popular among application developers.
    • Application developers don’t need to know the inner workings and vagaries of databases before using them.
    • NoSQL databases, in general, helps developers to work on what is required in the applications instead of trying to force relational databases to do what is required.
  • Database : Why MongoDB over other NoSQLs?

    • We chose MongoDB over other NoSQL databases because they easily support multiple levels of nested data unlike others where you have define the structure and type while creating the table.
    • When compared to Cassandra, Mongo allows us to choose secondary indexes along with the flexibility in the data model.
    • Unlike any other NoSQL DB Mongo is Schema-less, we don't have to define the schema in the beginning and it also allows the developers to change the schema dynamically
  • Choosing Server-side Framework: Why Node JS over Flask?

    • While Flask is complete backend framework based on python, Node JS is a full-stack framework based on javascript. Although one could develop backend of the web application in Flask, the UI of the application is commonly devloped in javascript and it makes sense to develop the server-side script in javascript as well since it gives continuity to between the client and server sides. Also, collaboration between the UI and Server scripting teams can happen at ease with each team helping the other in debugging as well given the shared knowlegdge of the languages used.

    • Node JS embeds the Chrome V8 compiler within it and it compiles the JS code into machine language code in memory the first it is referenced therby exhibiting a just in time compilation approach. Chrome V8 compiled machine code executes faster than python compiled byte code

    • It has been found that when medium-load applications written separtely in python as well as Node are deployed on a docker container and tested with a load testing application, the application written in python was twice as slow as the Node.js service.

    • The throughput of the applications written in python is also at least 10% lower than that of Node.js service.

    • All these factors combined implied that we would be better served if we design the server side in Node.js

  • Client-side scripting: Why React JS?

    • It is no-brainer to choose Javascript over any other client side scripting language given the overwhelming popularity amongst the developer community and also the number of libraries and frameworks, but choosing amongst React and Angular was something that needs to paid attention to

    • React uses Virtual Dom, whereas Angular uses a traditional Dom.

    • Now, in traditional Dom, if you want to update specific information of your user, Angular will rewrite the whole structure of the Html Tree. Whereas, React Virtual Dom allows you to update the changes without rewriting the entire HTML/ In short, React Virtual Dom is faster than the Angular Traditional Dom.

    • React Uni-directional data flow ensures that the state change takes place meticulously even in complex projects. Data flow control is very simple in react even for large projects.

    • Opposite to React's uni-directional nature, Angular's Bi-directional data flow makes it even complex for large applications to deal with data quickly.

    • Thus the clear winner was React amongst the two and we chose it for our application.

  • Express JS

    • Express is used for defining routes of a web application based on HTTP methods.

    • Provides us a lot of middleware modules to performing validation and sanitization

    • We can also define error handling using the middleware provided by Express.

  • REST over GraphQL

    • Error handling in REST is easier when compared to GraphQL. RESTful APIs follow the HTTP spec with regards to resources and returns various HTTP statues for various API request states. GraphQL, on the other hand, returns the 200 Ok status for every API request, including for errors. This makes it difficult to manage errors and makes it hard to integrate with monitoring tools.

    • Depending on how you choose to write or generate your schemas, static schemas could become a problem when you have a changing data model because the response the clients are going to get depends on the schema definition and the query they make

  • MongoDB Hosting

    • We have created a database instance on a cluster in MongoDB Atlas deployed int the region N. Virginia(us-east-1)

    • We have also created a 3 node replica set for the main database instance amongst which there are two secondary members and both the secondary members can become primary in an election.

    • Although AWS provides us virtual private cloud to manage MongoDB Atlas we had decided to host it on MongoDB since this application does not the require the scale of a equivalent production level application that has to log large amounts of data.

  • Elastic Load Balancer

    • We are using AWS' Elastic Load Balancer to automatically distribute the incoming traffic across multiple targets such as containers and IP addresses.

    • We have created two subnets with two availability zones for the ELB

    • Since we are not using HTTPS or SSL for our application we have not enabled them for the load balancer.

    • As far as the health checks are concerned we have made sure that after 3 consecutive health checks observing the normal functioning of the EC2 instances, they will be branded healthy.

    • We are also adding the EC2 instances for the load balancer to handle the traffic and re route them to those instances.

  • Hosting

    • We have hosted the entire application on AWS with Node and React servers being deployed in different EC2 instances.platforms.

    • The configuration for the EC2 instance we had used for hosting the node server is

      OS Amazon Machine Image Ubuntu 18.04

      RAM 1 GB

      vCPUs 1

      ROM Elastic Block Store

    • EC2 configuration of the React Server OS Amazon Machine Image Ubuntu 18.04

      RAM 1 GB

      vCPUs 1

      ROM Elastic Block Store

Feature Set

Employee/Admin

Login

While the registration of an Admin is done using a backend API which is not exposed in the User Interface since we did not want it be accessed by anyone and just be restricted the employees/admin associated with the system, the Admin can login to the Reservation system using the employeeLogin API.

Add Flights

An admin can add a flight to the booking system using the addFlights API which is one of the core functionalities of the Admin

Cancel Flight

An admin can also cancel any flight if the flight has no active reservations using the cancelFlight API

Edit Flight

An admin can edit the price and the mileage points associated with a particular flight using the editFlight API

Customer

Sign up

A customer can register themselves into the Spartan Airlines portal which is enbled by the signup API associated with actor customer

Login

If a customer has an account with the portal they can login to the portal and view their dashboard using the login API

Search Flight

If a customer has a active session with the portal they can search for flights using the searchFlights API which will give the list all the flights in which they can make a reservation

Make Reservation

A customer make reservations for multiple passengers in a single reservation made possible by the reservation API

Change Seat

If a customer has a active reservation they change their existing seat from the list of available seats from the same website using changeSeat API

Cancel Booking

A customer can also cancel the active reservation using the cancelReservation API which will release all the seats that were held by the passengers of that reservation

View Booking History

A customer can also change view all the reservations they have made using their account with getAllReservations API

Edit Profile

A customer can also edit the contents of the their profile which has been done using the PUT API for the profile endpoint

View Profile Details

A customer can view their profile details on the profile page which has been done with the help of a GET API on the profile endpoint.

Application Screenshots:

image

image

image

image

image

image

image

image

image

image

image

AWS Load Balancers Screenshots:

image

image

image

GitHub Repo Link:

https://github.com/gopinathsjsu/Spartans-Airlines-team10

Scrum Meeting Schedule:

Wednesday
Friday

Weekly Scrum Report & Burndown charts:

https://github.com/gopinathsjsu/Spartans-Airlines-team10/blob/main/Documents/Weekly%20Scrum%20Report.xlsx

Project Dashboard:

image

Sprint Journal:

https://github.com/gopinathsjsu/Spartans-Airlines-team10/blob/main/Documents/Sprint%20Journal.xlsx

Areas of contribution:

  • We divided our work as two categories, Frontend and Backend application development:

    • Frontend Application design, implementation and deployments - Shakthivel Ramesh Nirmala and Saurabh Vijaywargia
    • Backend Application design, implementation and deployments - Divya Mohan and Shravan Vallaban

Extreme programming (XP) Core Values Implemented:

  • Communication

    • Communication was one of the key strengths of our team. Our team managed to meet every week on Wednesday and Friday for the scrum.
    • During the meeting, we discussed about individual progress, technical difficulties and we helped each other whenever there was a roadbloack. We ensured that there was knowledge transfer from one person to the rest of the team.
    • We used GITHUB project board to plan our product backlog items. This helped us to analyse our team's sprint capicity and plan accordingly for all our future sprints.
    • By incorporating unfettered communication, we eliminated major pitfalls at earlier stage of development and increased our overall productivity.
  • Simplicity

    • We ensured to incorporate only the simplest things that worked.
    • We have made our code modular and re-usable so that everyone in the team could understand the code and make changes in the future if needed.
    • We have minimised the code smells as much as possible and added relevant comments in our code.
    • Our code base is simple hence easy to maintain
  • Feedback

    • Constructive feedback gave us a healthy environment for interaction and conveying our thoughts more transparently.
    • By giving and receiving regular feedbacks, we were able learn, adapt to the changes and avoid recurring mistakes. This motivated us to perform more efficiently.
    • During the development phase we pushed our changes to a branch and created pull requests. Once the code was approved by another team member, we pushed the changes to the master branch. We made sure the code changes on the master branch was always stable and did not break the other team member’s code.
    • Continuous feedback helped us in aligning our goals and responsibilities.

About

Team Project developed by Team 10 for CMPE 202 Fall 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages