Where users can search for trails by zipcode and mark them as completed.
This repo contains the server-side API built with Node/Express. Looking for the front-end Trail-To-Go Client? Click Here
Users can search for trails by zipcode and can also filter the list by trail rating or length. Users can also register and mark a trail as completed after logging in. User profile section shows the statistics based on the trails completed by the user. Leaderboard shows the top hikers based on trails completed
- React
- HTML5
- CSS3
- Heroku Cloud Application Platform
*** NOTE: The client makes AJAX calls to the Trails To Go API, which should also be running in your development environment
-
Clone this repository:
git clone https://github.com/supu4aqua/trails-to-go-client.git
-
Move into folder:
cd trails-to-go-client/
-
Run
npm install
-
Run
npm start
-
In browser, navigate to
localhost:3000
or your specified port -
To test, run
npm test
- Clone this repository:
git clone https://github.com/supu4aqua/trails-to-go-server.git
- Move into folder:
cd trails-to-go-server/
- Run
npm install
- Start PostgresSQL local server:
postgres
- Run
npm start
(ornpm run dev
to run with nodemon which auto-restarts on save changes) - Make requests using the root:
localhost:8080
or your specified port
- Start PostgresSQL local server
postgres
- Run
npm test
/api
.
├── /users
│ └── GET
│ ├── /
│ └── POST
│ └── /
├── /completed
│ └── GET
│ ├── /
│ └── POST
│ └── /
├── /leaderboard
│ └── GET
│ ├── /
- Show user completed trails as markers on Google Map in Profile section
- Allow user to search trails based on current location
- User should be allowed to add a rating
- User should be allowedto leave feedback or comments
- User should be able to post or share the completed trail details on Social Media