How's Your Development Involvement and Engagement
-
run
git clone https://github.com/iamthe-Wraith/hydie.git -
run
cd hydie -
run
npm install -
run
cp .env.example .env -
add the required environment variables to the new .env file (see Environment Variables)
-
run
npm run dev -
open you browser and visit
http://localhost:5173/
Below are instructions on where to find the values you'll need for your environment variables.
The username or organization name of the owner of the repo to pull data from.
If the repo is owned by an individual user, you can find their name in their url. Visit the user's GitHub profile and copy the url. Mine is https://github.com/iamthe-Wraith. Now copy the value found after https://github.com and remove any leading or trailing /'s. This is the value to set for the GITHUB_OWNER environment variable.
If the repo is owned by an organization, the process is the same. Go to the organization's GitHub profile and copy the url. One of my organization's urls is https://github.com/BuzyBee-Buzz/. Now copy the value found after https://github.com and remove any leading or trailing /'s. This is the value to set for the GITHUB_OWNER environment variable.
The name of the GitHub repository to pull data from.
To find this value, visit the repo in the browser and copy the url. The url for this repo is https://github.com/iamthe-Wraith/hydie...that end part (hydie) is the name of the repo.
This is your access token that will grant your requests access. To create an access token...
- login to GitHub
- navigate to
https://github.com/settings/personal-access-tokens - click
Generate new token - give the access token a name. this will help you to identify your access tokens later, so make it clear what the token is to be used for.
- set the
Resource owner. if the repo is owned by an organization, you will likely need to change this value to the organization's name. otherwise, set this to your username. - set an
Expiration - for
Repository access, I personally prefer to useOnly select repositoriesand select only the repo i'll be accessing, but select the option that's best for your personal use case. - under
Permissions, expand theRepository permissionsdetails - find the
Pull requestsoption and set it's value toRead-only - NOTE...this will automatically set
MetadatatoRead-onlyas well. The required and expected. - scroll to the bottom of the page and click
Generate token - copy the personal access token once it's displayed in the UI (make sure to do this, once you leave the page you cannot access this token again and will have to re-generate the token)
- paste the personal access token as the value for the
GITHUB_TOKENenvironment variable
💾 Don't forget to Save the changes you make to the .env file.