Skip to content

The Shoppies movie awards nomination app for an internship with Shopify. Using the OBDM movie API.

License

Notifications You must be signed in to change notification settings

fuston05/the_shoppies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Create React App

This project was bootstrapped with Create React App.

Run This Project Locally

  • Must have node installed
  • clone the repo to your local machine (git clone <github_url>)
  • cd into the project directory
  • run 'npm install' in your bash terminal to install dependencies.
  • run 'npm start' in your bash terminal to run the app

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Dependencies

About The Shoppies

Searching:

When you type in the search field ther is a 2s delay on auto submission. (ran out of time to add a loading spinner). Then your search results will be populated.

  • NOTE: You typically have to enter at least 3 chars to get a response form the api, it's just how the api works, otherwise the response is too big and will not be sent.

Nominations

You can click on the 'Nominate' button in the search results to add a nomination to the Nominations display. Once added the 'Nominate' button will be disabled untill removed from the Nominations display via the 'Remove' button. As soon as you nominate a movie it is stored locally in a cookie named "nominationsCookie' via the React-Cookies NPM package. Once the page is loaded or reloaded the cookie will be checked. If the cookie is set then the nominations will be populated from the cookie thus saving your nominations should you refresh or leave the page. You can remove a nomination by clicking the 'remove' button in the nominations display. This will update the cookie and remove the nomine from the list and re-enable the 'nominate' button in the search results.

NOTES

I had some issues when comparing the nominations list to the currently nominated movie in order to decide weather to render a disabled 'Nominate' button or not in the results view. I was cheking this using 'nominations.includes(movie) inside of a map() method but later it broke, and I ran out of time to figure it out. so, I did some hacky things with a foreach() to add a 'dis' bool property to each movie so that I caould use that for the comparison.

  • NOTE: Also, I want to mention that I am not a designer what-so-ever! So, I chose to focus on other things instead the design aspects. I did however manage to make it mobile responsive. BUGS: There are a couple other small bugs that will likely go unnoticed. Again, I ran out of time to work them out. This was a fun project!

About

The Shoppies movie awards nomination app for an internship with Shopify. Using the OBDM movie API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published