Git Product home page Git Product logo

webapp-ca-1's Introduction

Assignment 1 - ReactJS app.

Overview.

This repository contains the code for the first assignment of the Web App Development 2 module. The assignment is to create a ReactJS web application that consumes a RESTful API. The web application is a movie fan application that allows users to view movie details, reviews, and actors. The web application also allows users to create an account and login to the application. The web application also allows users to view upcoming, top rated, and popular movies. The web application also allows users to view similar movies and actors starring in a movie. Alt text

Features added by me.

  • Firebase Authentication

    Alt text

  • Movie cast page

  • Similar movies page

  • Upcoming movies page

  • Top rated movies page

  • Popular movies page

  • Pagination feature

  • Movie images in details page only display in English

  • Restyled components with custom fonts and colors

Setup requirements.

  1. Create a .env fille in the root directory with the following structure
REACT_APP_TMDB_KEY=.............................
REACT_APP_FIREBASE_API_KEY=.....................................
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=.............
FAST_REFRESH=false
  1. login/signup to firebase and create/open an existing a project Alt text
  2. Click on the web icon to create a web app Alt text
  3. Copy the API key and messaging sender id and paste them in the .env file Alt text
  4. Login or signup to TMDB and create/open an existing project, find the API key and paste it in the .env file
  5. Run the following commands in the root directory:
npm i
npm start

API endpoints.

The following is a list of the API endpoints I included in my web application.

  • /reviews/form
  • /authentication
  • /movies/favorites
  • /movies/upcoming
  • /movies/topRated Alt text
  • movies/popular Alt text
  • /reviews/:id Alt text

Routing.

[ List the new routes supported by your app and state the associated page.]

  • /movies/:id
  • /actors/:id
  • /movies/similar-to/:id
  • /actors/staring-in/:id

Similar Movies Section

Alt text

Independent learning.

Itemize the technologies/techniques you researched independently and adopted in your project, i.e. aspects not covered in the lectures/labs. Include the source code filenames that illustrate these (we do not require code excerpts) and provide references to the online resources that helped you (articles/blogs).

TMDB API docs had helped me significantly in understanding how to use the API endpoints and how to use the API key in my web application.

Restyled components

I decided to apply some tweaks to the user interface/experience aspect of the web application. I change the filter card into a header. Applied custom fonts and colors to the web application.

Added new MUI components

Alt text

Alt text

Alt text

Alt text

Learned Firebase Authentication

The followoing YouTube tutorail helped me immensely in learning how to use Firebase Authentication in my web application:

I took the following code from the tutorial and modified it to suit my web application by restyling it and allocating a separate page: authenticationPage.jsx

This gave me more experience with the use of an API in web application development

IMAGE ALT TEXT HERE

webapp-ca-1's People

Contributors

andrewk0val avatar

Watchers

 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.