GameFo is a video game information website. Enter a video game title in the search bar to view its trailers, images, and other various details.
To view a demo of the website, click here, or enter https://gamefo-demo.netlify.app in your browser's address bar.
Feel free to clone and experiment with the code as well. Follow these steps to do so.
-
create-react-app
-
- Used for all styling.
-
- API used to acquire all game media and information.
-
- Handles requests made to RAWG API.
-
- Handles swipe event on images when user is on a mobile device.
-
A RAWG API key is required to locally run this application. You can get a free API key by visiting RAWG's API docs site.
-
Once you are on the site, locate the link/button that will lead you to instructions on how to obtain a free API key.
$ git clone https://github.com/agviray/gamefo-website.gitStep 3 - From the app's root directory, install all of the dependencies that are required to run the app.
$ npm install-
You can find the rawg.js file following this path from the root diretory: src > apis > rawg.js
-
Un-comment const KEY and set it equal to your API key (as a string value).
$ npm start