Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Getting Started

Dhaval Mehta edited this page Jan 27, 2018 · 1 revision

Step 1. Fork Repository

Fork this repository to your GitHub account by visiting the repository home and clicking the Fork button available in the top-right corner of the page.

Need help? https://help.github.com/articles/fork-a-repo/

Step 2. Get API Credentials

Just like the actual GetDeals website, this version also uses the GetDeals API. The GetDeals API is completely free to use. However, you do need valid credentials to access it.

Visit https://getdeals.co.in/developers to get your credentials. Sign in to GetDeals using your GitHub account. Click Generate Token to generate a new GetDeals API token.

Your GitHub email address along with the GetDeals API token together make up the GetDeals API credentials. Note your GetDeals API credentials for the next step.

Step 3. Edit Required Files

GitHub provides an online file editor to manage files in your repository. Open index.html for editing in GitHub's online file editor.

Need help? https://help.github.com/articles/editing-files-in-your-repository/

Scroll down to the end of the file to find this:

<script type="text/javascript">
	getdeals( { "GD-API-Email": "", "GD-API-Token": "" } );
</script>

Insert your GetDeals API credentials from the previous step in index.html so that the above piece of code looks like this:

<script type="text/javascript">
	getdeals( { "GD-API-Email": "user@domain.com", "GD-API-Token": "qwertyuiopasdfghjklzxcvbnm" } );
</script>

Step 4. Host Website

For now, you can use GitHub Pages to host your website. GitHub Pages is completely free and very easy to set up. You can also use custom domains with GitHub Pages.

More information about GitHub Pages: https://pages.github.com
Hosting your website on GitHub Pages: https://help.github.com/categories/github-pages-basics