Skip to content

Organizational application for planning solo or group trips to national parks and exploring North America’s famous biking trails

Notifications You must be signed in to change notification settings

SNelson723/Take-a-Hike

 
 

Repository files navigation

TrailFeathers

Trail Feathers is an app for hiking and bird watching anywhere in North America! Use it to find hiking and biking trails, organize lists of items to bring with you, and check the weather for your trip. Read and leave reviews of the trails to elevate your travel experience.

Team ACE

Product Owner: Scrum Master: Caity Opelka Development Team: Rodolfo Machirica, Rene Mercadel, John Dyer, Santo Lococo, Murphy Fleenor

Team Kitty Scripters

Product Owner: Scrum Master: Caity Opelka Development Team: Daniel Jaen, Alec Vierbuchen, Gretchen Neuenhaus, Alex Beasley, Stephen Nelson

Application Walk Through

The idea is to have one stop shop for all your hiking needs, with a focus on North America.

When a user opens the application they will be brought to the login page where they can sign in with Google.

Located at the top of every page is a navigation bar which contains 7 options that will quickly navigate the user to the features of the application. From left to right are the ...

Bike Trails Search for bike trails anywhere in the world using your current location by address or by latitude and longitude.

Weather Search for weather forecasts anywhere in the world using the region name (city, national landmark), and save forecast to user created trips.

Quartermaster Allows user to create packing lists with just a name of the list and a description, after which the list is displayed on the page. User can click on a given list which will open a new view; and there, the user can add items that they want for that trip/packing list.

Birding Check List A searchable checklist of all the bird in Louisiana (according to eBird a Cornell run Bird Data API). This includes the bird's common name, scientific name, common family name, and common scientific name. Users can check any bird they have spotted along there journey to keep along the trail.

User Profile

Hiking Trails

Logout

Tech

  1. Cloudinary - Image hosting library
  2. React-Router - Router library
  3. Mysql - Database
  4. Sequelize - ORM
  5. React - Framework
  6. Axios - http Client
  7. Javascript
  8. Node.js - Runtime Environment
  9. Express - Server
  10. Bulma - CSS Library
  11. eslint - Linter
  12. Webpack - Module Bundler
  13. Passport/Google OAuth - Authentication
  14. AWS EC2 - Deployment
  15. Ebird - Bird data API
  16. TrailApi - hiking trail data
  17. MaterialUI - styling

database:

We have a mySQL/Sequelize database. We have all of our models located in database/models.

server:

We have an express server. It is set up in server/index.js. All routes, with the exception of the birdSighting and BirdList routes, are stored in server/index.js. The bird routes are stored in server/routes.

authentication

Our authentication is handled with oauth and passport. Our passport and google strategy setup can be found in server/middleware/auth.js. Once logged in, the user has access to the whole site.

apis

We used 3 external apis for this project:

  1. RapidAPI - Trail API - https://rapidapi.com/trailapi/api/trailapi/ This API allows us to search for any trails in the world based on latitude and longitude. It requires an API key and registration through RapidAPI, but both are free.

  2. Cloudinary API - https://cloudinary.com/documentation/image_upload_api_reference This api allows users to upload photos onto their profiles and on trail profiles. It requires credentials, but the entire setup is free for what we've used in this project.

  3. BirdSightings API - https://documenter.getpostman.com/view/664302/S1ENwy59?version=latest This api allows users to search for any bird species and receive data about that specific bird. It is maintained by Cornell University and is free.

front-end

The front-end was built using React and React Router. In App.jsx we initialize our trail data so that upon refresh of trail profile, the most recent trail data is rendered. In that same file we route our links and routes for the app.

The HashRouter can be found in client/index.jsx

The styling is found in login.css and main.css.

Dev Setup:

Environment Variables Needed

(for oauth)

  1. GOOGLE_CLIENT_ID=
  2. GOOGLE_CLIENT_SECRET=

(for photo upload) 3. CLOUDINARY_URL= 4. CLOUDINARY_NAME= 5. CLOUDINARY_API_KEY= 6. CLOUDINARY_API_SECRET=

(for hiking trail data) 8. X-RapidApi Key= 9. X-RapidAPI-Host=

Google OAuth

Google Oauth requires a google cloud account. First create your account and then navigate to the developer console. Go to google API and create a clientID and clientSecret. This goes inside the .env file.

Installation/Start-up

  1. First fork the repo and clone it to your local machine.
  2. Collect all env keys
  3. Run 'npm install' to install all dependencies
  4. Open mysql, create and use a database called 'TakeAHike'
  5. Run 'npm run dev' to start Webpack
  6. Run 'npm start' to run the server

Known Bugs

If you input a non-land based coordinate when searching for trails, it will return an error.

About

Organizational application for planning solo or group trips to national parks and exploring North America’s famous biking trails

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • CSS 4.5%
  • HTML 0.5%