Skip to content

AustinBH/my-trails-backend

Repository files navigation

My Trails Backend

This API is used for a trail finder app. Images are integrated with AWS S3 to allow users to upload their own hiking images. This API will respond to calls from the My Trails app frontend but will not allow requests from other sources.

The API is currently hosted at: https://my-trails-backend.herokuapp.com

Demo

The frontend application is currently functional and can be found at: https://my-trails.info

Example Routes

There are still several routes which will return data, the trails, locations, and avatars routes will all return data.

Technology Used

  • Ruby on Rails
  • JWT user authentication
  • AWS S3 image hosting
  • Hiking Project API

Setting up the server

As this is a rails app, you will need to run bundle install after you clone the repo. There are also several different .env variables that you will need to define. I have created a .env.sample file to give you placeholders for what keys you will need to use the full functionality of this application.

You will need a Hiking Project API Key, an AWS account, and a JWT secret. For the API Key, you will need to request that from the hiking project. You will need to sign up for an AWS account if you want to use AWS S3 hosting for images. You will need your AWS access key, AW secret access key, AWS region, and the name of your S3 bucket to use this application in it's current state.

As the frontend for this app is located in a different repo, you can always navigate to the direct localhost routes. You can also use an application like Postman to make requests and test your server or simply clone the frontend app if you want to see the data that is returned.

Thank You!

  • REI's Hiking Project
    • Their API has been an absoloute pleasure to work with and I am so glad that I was able to integrate it into this application.

About

An API with user, comment, like, completion, image, and location data for a trail finder app. The trail data is provided by the Hiking Project API. Image hosting provided by AWS S3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published