Skip to content

tammytee/faq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

faq

frequently asked question

How to fork a repo

  1. Create a GitHub account
  2. Navigate to the repository you'd like to fork.
  3. In the top right corner of the page click Fork.

This will give you a fork of the orginial code to edit.

GitHub's documentation on how to fork a repo: https://help.github.com/articles/fork-a-repo/

How to submit a pull request from your forked repo?

  1. After you've forked the repo you want to contribute to, clone the repo locally.

  2. Make your changes.

  3. When you're done, commit and push the changes you've made to the your forked repo. (Note: When you commit, don't forget to include details about the changes you've made in the commit message.)

  4. Visit your forked repo on Github. You should see a banner suggesting you submit a pull request to the original repo. If you don't see this, choose the Pull Request tab from the ribbon of options at the top of the page and click the New Pull Request button.

  5. Type in a title and description for your pull request.

    In the description of your pull request be sure to reference the issue you are fixing by simply typing # followed by the issue number.

  6. Click Create pull request.

Github guides

More detailed instructions on creating a pull request and autolinked references to urls, issues, etc, can be found at the following links:

How to rebase to forked origin

Step 1 (Add the original repo as a git remote):

git remote add upstream https://github.com/charlottejuniordevs/client

Step 2 (update git with latest in original repo):

git fetch upstream

Step 3 (update your branch to what's latest in original repo):

git rebase upstream/master

To do an interactive rebase, add the -i flag to your command

git rebase -i upstream/master

Follow this link to the official Git documentation for more information on git-rebase: https://git-scm.com/docs/git-rebase

How to set up the API?

  1. Before you can access the API, you need to install docker toolbox and docker-for-mac (or whichever is appropriate for your machine).

    https://www.docker.com/get-docker

  2. Once you have those installed, run the following command in your terminal:

touch .env

This gives you access to the API's .env file.

See here for instructions on setting up your .env file (and keep in mind that this file is required in order to fetch GitHub issues).

  1. Finally, you'll need to run the following:
  docker-compose build
  docker-compose run --rm web bin/setup
  docker-compose up web 

This last command starts the server. You'll need to keep this running in a separate tab.

###Sending requests to API via Postman Postman is a GUI platform designed to make API testing easier. If you don't already have it, you can find it here.

Once that is up, run the following command in a separate tab to get a JSON web token to use in Postman:

docker-compose run --rm web rake token

In Postman, you will need to add a header with Authorization as the key and Bearer <your-token-here> as the value.

You should now be able to send requests to localhost:3000.

About

frequently asked questions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published