Skip to content

A question and answer service for users to get information about particular travel spots.

Notifications You must be signed in to change notification settings

excursion-expert/questionAndAnswer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

232 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Question & Answer

I worked on a team of engineers designing Excursion Expert, a travel information site. I designed the question and answer service on the site, where users could ask and answer questions about particular locations.

The service was built with React, backed with a MongoDB database and Express server.

🌈 Want to skip to the fun part? Keep scrolling down to see GIFs of the site in action 🌈

Getting Started

If you feel like checking out the project without setting everything up, scroll down to 'Usage' and check out the GIFs of the site in action!

  1. Fork the repo and clone to your local machine.
  2. Run 'npm install' from the root directory.
  3. Install MongoDB.

You will also need to install nodemon if you do not already have it installed.

Seeding the Database

This application requires data to be seeded into the database. The file server/seed.js accomplishes this task for you.

npm run seed

To make sure the data has seeded, run the following from the command line:

mongo
use fetcher
db.questions.find()

This will return all 100 primary records. Each primary record will consist of 1-50 questions, and 0-4 answers.

Booting Up

To run this project in your web browser, run the following:

npm run build

This starts up webpack.

npm start

This will start the project in your web browser.

Navigating Primary Records

If you navigate to your localhost, you will see an error that looks like the following:

This is because you have not navigated to a primary record. You must include a primary record from 1-100 at the end of the url. For example:

localhost:3004/3

Once you have done this, you should see a web page that looks like the below screen grabs!

Usage

Ask a Question

Alt Text

Answer a Question

Alt Text

Previous/Next

Alt Text

Thumbs Up/Thumbs Down

Alt Text

Show all Answers

Alt Text

Acknowledgments

About

A question and answer service for users to get information about particular travel spots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors