This application is made for the Web Development Minor: Performance Matters course.
- 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.
- Download/clone the repo and run the
npm install
command - Run the
npm start
command to start the server - Go to your localhost
- Voila
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.
npm run build
to build the bundle.js with Browserifynpm run watch
to watch the index.js so it automatically builds the bundle.jsnpm run lint
to lint your code with XOnpm run expose
to create a public URL to a local webservernpm run test
to build the bundle with Browserify and lint the code with XO
The Dev Tools tests were done with disabled cache and with a Regular 2G throttle.
Didn't got the 100 because of a Ngrok bug?
If you want to test the app you can get your own key right here. The API URL is https://api.themoviedb.org/3
.
- Fix Service Worker issue
- Add more JavaScript enhancements
MIT