Skip to content

Performance Matters NodeJS assignment - Minor Web Development

Notifications You must be signed in to change notification settings

Mimaaa/MINOR_WD_PEMA-NODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MovieYAY App

This application is made for the Web Development Minor: Performance Matters course.

What does it do?

  • NodeJS & Express for server-side rendering
  • Handlebars to handle the templating
  • Browserify to bundle the Javascript
  • The Movie Database API to request movie info
  • Installed a basic Service Worker for offline handling & caching with the help of this lovely lady

You can search for a movie and the app gives you some extra information about the movie.

How to install the project?

  • Download/clone the repo and run the npm install command
  • Run the npm start command to start the server
  • Go to your localhost
  • Voila

Service Worker - important

The Service Worker is not enabled by default because of this problem (POST requests won't work).

If you want to enable the Service Worker, just uncomment the code in the index.js file.

Other commands

  • npm run build to build the bundle.js with Browserify
  • npm run watch to watch the index.js so it automatically builds the bundle.js
  • npm run lint to lint your code with XO
  • npm run expose to create a public URL to a local webserver
  • npm run test to build the bundle with Browserify and lint the code with XO

Performance Increase

The Dev Tools tests were done with disabled cache and with a Regular 2G throttle.

Before doing anything regarding Performance

alt text

alt text

After Enabling Compression

alt text

alt text

After Minifying CSS & Critical CSS

alt text

alt text

Didn't got the 100 because of a Ngrok bug?

API KEY

If you want to test the app you can get your own key right here. The API URL is https://api.themoviedb.org/3.

TO-DO

  • Fix Service Worker issue
  • Add more JavaScript enhancements

License

MIT

About

Performance Matters NodeJS assignment - Minor Web Development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published