Skip to content

amazoradi/Take-A-Hike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Take a Hike

Take A Hike

Take A Hike is an app for the explorer who may not know where the next adventure lies. If you have ever wanted to go for a hike but needed help finding the perfect trail, Take A Hike is the app you have been waiting for. Take a Hike allows the user to find new trails, create an inventory of the their completed hikes (from their faithful standbys to the not so favorites, and everything in between), create a list of hikes the user wants to go on in the future, and allows the user to chat with others in the hiking community. Take a hike is written with the JavaScript framework, React.js.

Getting Started

To run Take A Hike locally, create an empty directory and clone the project by running the following command in your terminal: git@github.com:amazoradi/Take-A-Hike.git

Take A Hike uses a database.json file to store all data. To create the database, run:

mkdir api
cd api
touch database.json

Open database.json and copy the following into the file to create a database skeleton:

{
  "users": [
    {
      "id": 1,
      "name": "JoeShep",
      "password": "broccoli",
      "email": "joe@joe.com",
      "location": "Nashville"
    },
    {
      "id": 2,
      "name": "Austin",
      "password": "austin",
      "email": "austin@austin.com",
      "location": "Santa Barbara"
    },
    {
      "name": "Bryan Nilsen",
      "password": "cool",
      "email": "bryan@bryan.com",
      "location": "Long Island",
      "id": 3
    }],
"hikes": [
     {
      "id": 1,
      "userId": 3,
      "name": "Warner Woods Trail (White)",
      "hikeLocation": "Forest Hills, Tennessee",
      "hikeState": "Tennessee",
      "length": 2.3,
      "stars": 4.4,
      "summary": "A popular wooded singletrack trail beginning at the entrance to the Warner Parks trail system.",
      "imageUrl": "https://cdn-files.apstatic.com/hike/7030317_small_1493523895.jpg",
      "completed": true,
      "public": false,
      "date_completed": "11-21-2018",
      "user_rating": 5,
      "completed_message": "One of my favorite hikes in Nashville, I love how close it is to my house!",
      "editId": 1
    },
    {
      "userId": 3,
      "name": "Paintbrush Divide",
      "hikeLocation": "Jackson, Wyoming",
      "hikeState": "Wyoming",
      "length": 19.6,
      "stars": 4.8,
      "summary": "A classic, long day trip for the extra-fit, or overnight trip for those looking to camp.",
      "completed": false,
      "public": false,
      "date_completed": "",
      "user_rating": "",
      "completed_message": "",
      "id": 6,
      "imageUrl": "https://cdn-files.apstatic.com/hike/7030317_small_1493523895.jpg"
    },
    {
      "userId": 2,
      "name": "Red, White, and Blue",
      "hikeLocation": "Forest Hills, Tennessee",
      "hikeState": "Tennessee",
      "length": 11.2,
      "stars": 11.2,
      "summary": "A nice singletrack course through Percy and Edwin Warner Parks.",
      "completed": true,
      "public": false,
      "date_completed": "2018-12-10",
      "user_rating": 3,
      "completed_message": "Great hike, very long, but solid, tough and near my house",
      "id": 7,
      "editId": 7,
      "imageUrl": "https://cdn-files.apstatic.com/hike/7030317_small_1493523895.jpg"
    },
    {
      "userId": 2,
      "name": "Bray-Greystones Cliff Walk",
      "hikeLocation": "Bray, Ireland",
      "hikeState": "Ireland",
      "length": 4.1,
      "stars": 4,
      "summary": "A well-marked trail along the Irish Sea cliffs between the small towns of Bray and Greystones.",
      "completed": true,
      "public": false,
      "date_completed": "2018-12-01",
      "completed_message": "I really love Ireland!! Best place to live! Beautiful view of the coast",
      "id": 48,
      "user_rating": 5,
      "editId": 48,
      "imageUrl": "https://cdn-files.apstatic.com/hike/7030317_small_1493523895.jpg"
    }],
"messages": [
    {
      "userId": 4,
      "time": "2018-12-04T15:32:42.975Z",
      "message": "Take a hikes first ever message. And my name is Bryan and I am soooo cool",
      "imgUrl": "https://avatars2.githubusercontent.com/u/43187473?s=400&v=4",
      "id": 1
    },
    {
      "userId": 2,
      "time": "2018-12-04T15:42:54.512Z",
      "message": "Hiking is the best when you're with a friend! But not with Bryan, his legs are too long.",
      "imgUrl": "https://avatars3.githubusercontent.com/u/42081267?s=400&u=374ae2c0940e3881536dd3216d467fa2eec5ed63&v=4",
      "id": 2
    },
    {
      "userId": 3,
      "time": "2018-12-06T20:04:13.636Z",
      "message": "Here Kitty kitty! Saw this little guy hiking the other day.",
      "imgUrl": "https://i.imgur.com/VhjrRLR.jpg",
      "id": 3
    },
    {
      "userId": 1,
      "time": "2018-12-06T20:08:14.586Z",
      "message": "Broccoli! My Fav! Such a great hiking snack!",
      "imgUrl": "https://media1.tenor.com/images/c1ce229d484184e5c0b0fb0fa5cfad5e/tenor.gif?itemid=5654386",
      "id": 4
    }]
}

Traverse back the take-a-hike folder and run: npm install This is will install all packages, libraries and their dependencies used by Take A Hike. Next run the following in order to view Take A Hike in your browser: npm start Open http://localhost:3000 to view it in the browser. In another window of your terminal go into the src/api forlder and run: json-server -p 5002 -w database.json

Entity Relationship Diagrams

Technologies Used

React.JSJSCSS3HTML5 Semantic-ui React Momentjs Google-Maps-React The Hiking Project VS Code NPM Canva Open Weather Map

Visualization of Take A Hike

Enjoy Take A Hike

This project was bootstrapped with Create React App.

Author

Austin Zoradi

About

Front-End Capstone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published