ย For our final Mod 2 project - we build a full stack app using JS, CSS, HTML, and Ruby on Rails.
Trails is an app to view Hiking Trails in the Colorado Area! We have it set up to list up to 100 of the trails closest to Denver. You can filter these by the name of the hike using the search bar or by difficulty using the nav buttons. Hiking trail difficulty is rated using the same terminology as Ski Slopes (beginner: green, medium: blue, expert:black). You can create a new user following the 'log-in' prompts under the header. After creating a new user, select the user's created username - the username will display under the header on the right. Add a favorite by clicking on the star at the top of each trail info card. To view your favorites - click your username! This will take you to a personalized page with your favorites listed. To delete a hike from your favorites, simply click the "delete" button at the bottom of each hike. Navigate back to home from your page with the "Home" button.
We accessed an API through REI Hiking Project with an REI member specific key. In order for this program to work, unfortunately you must be an REI member (or have a friend who's API you can use). Follow This Link to find your API key specific to your REI membership on the Hiking Project Page. You will need to log-in to your REI membership to view.
- Fork the repo, git clone, and cd into the main directory (mod2project)
- Open up your code editor of choice
- In your command line - into cd backend
- Create a new file .env
- In this .env file copy your API key from the Hiking Project Page:
REI_API_KEY=your-REI-Hiking-Project-API-key - Then in your terminal(still within the backend directory) run the comands
rails db:migrate
rails db:seed
rails s - Open a new terminal tab and cd into frontend. Run the command "lite-server"
You should now have a new browser window at our home page! Enjoy using trails!
Contributors: Daemon Self & Lizzy Tong