Skip to content

Set Up Instructions

Jen Reassey edited this page Mar 10, 2018 · 13 revisions

Following these instructions will enable you to run the app locally with your own Google Maps API key.

This is an essential first step to contributing to this project.

Special instructions for beginners - Follow these steps up to "Give GitHub your public keys".

General Set Up Instructions

  1. Fork the repository to your github.
    • To fork the project, head over to gwg-women-techmakers and fork the project into your own github.

    • Head into your forked project and click the green button that says Clone or download to see the URL to use to fork into your own computer. It should look a little something like this:

      https://github.com/<your_username>/gwg-women-techmakers.git

    • Open your command shell of choice and navigate to the folder where you want your project to be in. Type in:

      git clone https://github.com/<your_username>/gwg-women-techmakers.git

  1. How to get your own API key
  1. Getting it running
    • Installing Dependencies:

      • Navigate inside gwg-women-techmakers folder with your command shell and install all dependencies with your package manager of choice.
        • NPM:
          npm install
        • Yarn:
          yarn install
    • Inserting your API key:

      • Inside the directory, find .env.example and create a copy and name it .env.

      NOTE: .env is in .gitignore and will not be uploaded to your github.

      • Your API key inside your environment variable (.env) should start with REACT_APP.
        • Google's API should look this:

          REACT_APP_GKEY: api_key

        • Weather's API should look like this:

          REACT_APP_WEATHERKEY: api_key

    • Starting the APP:

      • Build everything together with your package manager of choice:

        • NPM: npm run build or npm build

        • Yarn: yarn build

      • Start it!:

        • Run the app by typing in:
          • NPM: npm start

          • Yarn: yarn start

      You should be able to see it run on localhost:3000. That's it!