greybax / awesome-IT-films

:tv: A curated list of awesome films about IT & geek people.
https://greybax.github.io/awesome-IT-films
Creative Commons Zero v1.0 Universal
842 stars 120 forks source link

Automatically Create Movies ratings with framework ready for the docs, tv shows #63

Closed perkinsjr closed 5 years ago

perkinsjr commented 5 years ago

Fixes issue #23 with the following details:

I changed the layout for the Movies.md to group by .5 ratings.

Each movie now has its own rating under the title. They are still in higher to lower order.

To add new movies we would just add a movie to the movies_prebuilt with :star: Matrix_Score under the title. Then in the storage.js we add the Matrix_Score and the imdb title id to the object.

Then run npm run build-movies and that will automatically go out and collect all the data and insert into the text file and then render a new md.

The only change to make this work is to add your own api key into the code. { apiKey: "" in the movie_markdown_builder.js

Let me know what you would like changed etc.

perkinsjr commented 5 years ago

@greybax if this works for you... I will create the tv shows and documentary in the same format and then add movie / tv/ documentary badge counts that dynamically change when we add new movies

greybax commented 5 years ago

Looks pretty good, I like it! :) one thing can we avoid *.txt files? May be use .md instead of them. For example ‘movies_template.md’ will generate ‘movies.md’ ?

perkinsjr commented 5 years ago

Yes, originally I had it as .md files and then switch back... I will make that change and then add docs and tv shows over the next couple days. Then I will push up changes to this pull request.

greybax commented 5 years ago

@perkinsjr great!

perkinsjr commented 5 years ago

@greybax Everything is done for movies, tv shows and documentaries... Same idea just run build-movies build-tv-series build-documentary also I moved the 'apikey to an env to make it easy to keep track of.

It should be ready to merge.

Cheers!

greybax commented 5 years ago

Will figure out with conflicts and will merge it soon! Thank you for your work!

greybax commented 5 years ago

Merged Thank you for contribution @perkinsjr! 🙌