Skip to content

codeforpdx/symptomsurvey_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symptom Survey Front End

This repository is a website for use by Clackamas County. These are developer notes. I have included notes that assume the reader is using a Mac OSX or Linux command line.

setting up your development environment

Installing node

This site is a ReactJS app so you will need to have NodeJS (verson 6.10.2) installed on your computer to run it. You can install the node version manager (nvm) with the following command.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

The program nvm will be available from your command line once you source the project from your shell. To source your profile from your shell run . ~/.bash_profile or open a new terminal window.

Now that nvm is installed you can install node and set a default node version:

nvm install 6.10.2 && nvm alias default 6.10.2

You will see that you have a successful install of node if you check the versions of node & npm and see

$ node -v
v6.10.2
$ npm -v
3.10.10

Integrated Development Environment (IDE)

You will want to set up an IDE before you begin making contributions to this code base. I am using VS Code to develop this site and collaboration will be easiest if we use the same IDE as one another.

A download of VS Code is available here. Once you have installed the editor and you have the program open you can open the command pallet (shift + command + P) and search for install 'code' command in PATH. Once you run that command from the command pallet, you can type code <directory name> to open any directory in VS Code from the command line.

Cloning the repository

Navigate to a repository where you would like to store the source code. Then run

git clone https://github.com/codeforportland/symptomsurvey_frontend.git
code symptomsurvey_frontend

Installing the Google Maps API secret key

In order for the app to make API calls to Google Maps, which places the Twitter markers, you will need a secret key installed on your machine. This is done in the terminal, it's not kept in any files so there's no risk of uploading it accidentally. You will need to talk to someone on the frontend team to get the key directly from them. Follow these steps (for Mac OS):

  1. Obtain key from frontend team
  2. $echo "export G_MAPS_KEY=<your gmaps key>;" >> ~/.bash_profile
  3. $. ~/.bash_profile or restart the project

Running the site locally

If you have the repository open in VS Code, you can open a terminal control + ` and run npm install. This will install all of the project dependencies. To then run the project run npm start and navigate to localhost:8080 in your browser.

End of set up instructions


Google Maps API

This is information about how Google Maps is used in the frontend of the project.

react-google-maps is used to simplify Google Maps API as a component to display a cluster map of search results.

About

Front End or the Symptom Surveyor Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published