Mid Sweden University

miun.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Refactoring Nordyr: ReactJS + Laravel
Mid Sweden University, Faculty of Science, Technology and Media, Department of Information Systems and Technology.
2020 (Swedish)Independent thesis Basic level (university diploma), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

This independent work includes refactoring a website application. In simpler sense, it means modernizing existing code by increasing its quality and making it more understandable; to exchange old knowledge of methods and concepts into something that is more relevant to its time. This refactoring has also meant to transform the UI into something that is more appealing, and more userfriendly. The website that has gone through the refactoring is Nordyr (”https://nordyr.com/”). Nordyr is a Nordic Film & Series Database that shares information about Nordic films and tv-series, and everyone involved. They also offer social tools such as user profiles and various tools to simplify the exploration and interaction between Nordic movies and consumers. This was made possible by using vanilla PHP, JavaScript/jQuery, and the MariaDB database for information storage and management. The implementation of the refactoring meant retaining PHP for the backend, but applying the Laravel framework, and likewise for JavaScript, but applying ReactJS (a powerful JavaScript library). Nordyr retains MariaDB for its information storage and management, however, its SQL queries have been adapted to Laravel’s query-builder and Eloquent ORM, which means that the majority of SQL queries have been rewritten and the majority of data tables are now represented by models. The restructuring of Nordyr has shown that the website now has the ability to scale better, and the development environment will also be more pleasant for those involved.

Abstract [sv]

Det här självständiga arbetet har innefattat att omstrukturera en hemsida. Det innebär i enklare mening att modernisera kod och öka dess kvalité; att byta ut äldre kunskaper om metoder och koncept till något som anses vara av mer relevans för sin tid. Refaktoreringen har också inneburit att dess UI gjorts om till att bli mer tilltalande och användarvänlig. Hemsidan som gått igenom refaktoreringen är Nordyr (”https://nordyr.com/”). Nordyr är en Nordisk Film- & Serie-databas som delar information om nordiska filmer och tv-serier och alla inblandade. De erbjuder även sociala verktyg som användarprofiler och diverse verktyg för att förenkla upptäckandet och interaktionen mellan nordiska titlar och konsumenter. Detta gjordes möjligt med hjälp av vanilj PHP, JavaScript/jQuery, och databasen MariaDB för informationslagring och hantering. Genomförandet av refaktoreringen innebar att behålla PHP för backend men tillämpa ramverket Laravel, och likaså för frontend, JavaScript stod kvar men ReactJS (”JavaScript bibliotek”) tillämpades. Nordyr behåller MariaDB, men dess förfrågningar i SQL har anpassats till Laravels query-builder och Eloquent ORM, vilket innebar att majoriteten av SQL frågor skrivits om och majoriteten av tabeller representeras nu av modeller (”Models”). Omstruktureringen av Nordyr har visat på att hemsidan nu har förmågan att skala bättre, och utvecklingsmiljön kommer även bli mer behaglig för de inblandade.

Place, publisher, year, edition, pages
2020. , p. 87
Keywords [sv]
PHP, Laravel, Eloquent, ORM, SQL, ReactJS, React, Redux, JWT, MariaDB, Nordyr, Microsoft Visual Studio Code, Postman, Photoshop, OOP, MVC, Repository
National Category
Computer Engineering
Identifiers
URN: urn:nbn:se:miun:diva-39100Local ID: DT-V20-G2-019OAI: oai:DiVA.org:miun-39100DiVA, id: diva2:1434955
Subject / course
Computer Engineering DT1
Educational program
Web Development TWEUG 120 higher education credits
Supervisors
Examiners
Available from: 2020-06-04 Created: 2020-06-04 Last updated: 2025-09-25Bibliographically approved

Open Access in DiVA

fulltext(4977 kB)325 downloads
File information
File name FULLTEXT01.pdfFile size 4977 kBChecksum SHA-512
e008d2b7598ccbe01c8b046f3d4a81f0d36c4c9935305439e46997f37208d355a3c0d4f6fcc702f7a4e051640f6e3349bdb605cb91289559769ff01b757f2823
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Färholt, Fredric
By organisation
Department of Information Systems and Technology
Computer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 325 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 715 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf