Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
01ece78
set css for the App.js
mhosseinsafi Oct 17, 2023
7bc6bef
add new font
mhosseinsafi Oct 17, 2023
2e7e0f3
add fake data to json file
mhosseinsafi Oct 17, 2023
d8f6eb5
edit .css import in index.js
mhosseinsafi Oct 17, 2023
93fa1c8
initial homepage
mhosseinsafi Oct 17, 2023
f3a3fde
add package-lock.json
mhosseinsafi Oct 17, 2023
8c70346
add QuizJs logo
mhosseinsafi Oct 17, 2023
fef7c81
add QuizJs logo to homepage
mhosseinsafi Oct 17, 2023
3f18a7b
add new Logo
mhosseinsafi Oct 17, 2023
e64b8f8
add path for the Logo
mhosseinsafi Oct 17, 2023
954348f
create components
mhosseinsafi Oct 17, 2023
6112bf1
move function to home.js component
mhosseinsafi Oct 17, 2023
454271d
change the path for the image
mhosseinsafi Oct 17, 2023
f762f1b
schema file made seeds started
ryanstew95 Oct 18, 2023
b51a45b
npm install router dom
mhosseinsafi Oct 18, 2023
bb3c244
add routes
mhosseinsafi Oct 18, 2023
5f7d0fb
add navigation to instruction page
mhosseinsafi Oct 18, 2023
8771bda
add image-css file-back navigation
mhosseinsafi Oct 18, 2023
028feb9
writing outline for questions for round one
ryanstew95 Oct 18, 2023
f5943f6
merge master to my database branch
ryanstew95 Oct 18, 2023
afbd036
Merge pull request #1 from ryanstew95/home_page
mhosseinsafi Oct 18, 2023
131d20c
working on round two questions
ryanstew95 Oct 18, 2023
26e1825
merge with master
ryanstew95 Oct 18, 2023
2c9efe2
working on questions for round two
ryanstew95 Oct 18, 2023
593686e
finished outline for questions
ryanstew95 Oct 18, 2023
8134636
started seeds for question table
ryanstew95 Oct 18, 2023
1b85ea5
editing questions
ryanstew95 Oct 19, 2023
6141fa5
add testing-library package, add tests for leaderboards
nickstilwell52 Oct 19, 2023
9b29130
finishing up questions outline
ryanstew95 Oct 19, 2023
8e24a30
add mock data
ychento Oct 19, 2023
812221b
ready to work on seed02 file
ryanstew95 Oct 19, 2023
336f05b
added how to play to instruction page
ryanstew95 Oct 20, 2023
b23a3fc
database made and connected
ryanstew95 Oct 20, 2023
9394575
made backend route to test if the db connection worked
ryanstew95 Oct 20, 2023
a9c305e
api for game table done
ryanstew95 Oct 20, 2023
c04efec
replace hard coded leaderbaord with scores from the db
ryanstew95 Oct 20, 2023
dbe3ed5
ordered the scores from highest to lowest
ryanstew95 Oct 20, 2023
defa3e3
deleted consolelog for debugging and imports that was not being used
ryanstew95 Oct 20, 2023
6ed16ee
Merge pull request #2 from ryanstew95/tests/leaderboard
nickstilwell52 Oct 20, 2023
97784ba
merge
ryanstew95 Oct 20, 2023
5c44976
Merge pull request #3 from ryanstew95/back-end
ryanstew95 Oct 20, 2023
d7166a0
fixing merge confilt mistake
ryanstew95 Oct 20, 2023
1f2f085
Merge pull request #4 from ryanstew95/ryan
ryanstew95 Oct 20, 2023
4c4e9a3
fixed seed and schema issues
ryanstew95 Oct 21, 2023
291ca2d
template for game started
ryanstew95 Oct 21, 2023
4a40791
working on quiz features
ryanstew95 Oct 21, 2023
6e4782e
worked on quiz logic
ryanstew95 Oct 21, 2023
bef4d5c
added back to home button
ryanstew95 Oct 21, 2023
138e1d6
front end for last page
ryanstew95 Oct 21, 2023
1d69c18
added some styling to quiz
ryanstew95 Oct 21, 2023
9cf8dae
made game layout bigger
ryanstew95 Oct 21, 2023
1185577
added image for when you get a question right
ryanstew95 Oct 21, 2023
067f657
create the game page with function of showing choices and select answer
ychento Oct 21, 2023
128eb89
add basic css code for game page
ychento Oct 21, 2023
08ffc6b
add /game route
ychento Oct 21, 2023
d4452e0
add route
ychento Oct 21, 2023
ddc7156
change set time out from image and route for game to quiz
ryanstew95 Oct 23, 2023
b432acf
Merge pull request #5 from ryanstew95/quiz2
ryanstew95 Oct 24, 2023
75e5004
is working with db but correct asnwer is not being handle correctly
ryanstew95 Oct 24, 2023
fa40727
is working but now it going thought every question instead of showing…
ryanstew95 Oct 24, 2023
a4c6d13
revert changes untill got back to working state
ryanstew95 Oct 24, 2023
86dc73c
add game function
ychento Oct 24, 2023
230d698
edit code
ychento Oct 24, 2023
4b4b5ad
Merge branch 'master' into game_page
ychento Oct 24, 2023
2781357
got random question for every playthought to work
ryanstew95 Oct 25, 2023
ac31cc9
Merge pull request #6 from ryanstew95/refactoring2
ryanstew95 Oct 25, 2023
9239b43
data of players name and score is being logged but not displayed yet
ryanstew95 Oct 25, 2023
8943aff
submit form at the end is now working
ryanstew95 Oct 26, 2023
ddd8417
only 20 scores display at one time on front page now
ryanstew95 Oct 26, 2023
b59edf4
tryed to add a command to reset the db then reverted changes
ryanstew95 Oct 26, 2023
f2e4f32
added handling for scoring:
ryanstew95 Oct 26, 2023
18d9252
added a reset db command
ryanstew95 Oct 26, 2023
dc9e631
Merge pull request #7 from ryanstew95/last_page2
ryanstew95 Oct 26, 2023
a406df0
merge
ryanstew95 Oct 26, 2023
6b8f88f
fix the back-end and front-end data sync issue
ychento Oct 26, 2023
e974311
Merge branch 'master' into timer
ychento Oct 26, 2023
7d3ff30
your time is displayed on the last page
ryanstew95 Oct 26, 2023
c791013
add timer function in quiz page
ychento Oct 26, 2023
fb9d57f
added a thumb down dude
ryanstew95 Oct 26, 2023
e31d883
added dude image to front page
ryanstew95 Oct 27, 2023
55e1c13
rounds and instruction page
ryanstew95 Oct 27, 2023
0a40f41
reverted round changes and cleaned up code
ryanstew95 Oct 27, 2023
7f4f659
skip,fiftyfifty,switch
mhosseinsafi Oct 28, 2023
59e3ad4
new commit
ryanstew95 Oct 28, 2023
1f85212
Merge pull request #8 from ryanstew95/ryan2
ryanstew95 Oct 28, 2023
d141ca2
working on round issues and debugging
ryanstew95 Oct 29, 2023
427148a
got rounds working again
ryanstew95 Oct 29, 2023
be57241
fixed uncaught promise error
ryanstew95 Oct 29, 2023
86cd5e0
removed hint emoji
ryanstew95 Oct 29, 2023
fd81cae
fixing hidden errors
ryanstew95 Oct 29, 2023
0ffb62e
changed wording for instruction page
ryanstew95 Oct 29, 2023
35288ab
added ul emelments to instruction page
ryanstew95 Oct 30, 2023
4fdd00b
working on validations for nicknames
ryanstew95 Oct 30, 2023
60ac606
Merge pull request #9 from ryanstew95/ryan3
ryanstew95 Oct 30, 2023
80adb08
can not add blank nicknames and ones to small or large
ryanstew95 Oct 30, 2023
412a7b3
handle 50/50 functionality
mhosseinsafi Oct 30, 2023
8cf087b
handle skip and 50/50 functionality
mhosseinsafi Oct 30, 2023
452d2fb
Validations for nickname
ryanstew95 Oct 30, 2023
7ee681f
merge with master
ryanstew95 Oct 30, 2023
0823caf
fixed warning in console, delete hint emjoi and settime out for dude
ryanstew95 Oct 30, 2023
3e5ec41
Merge pull request #10 from ryanstew95/nickname-testing
ryanstew95 Oct 30, 2023
5d1df75
add sound functionality
nickstilwell52 Oct 30, 2023
0892eae
Merge pull request #11 from ryanstew95/feature/sound
nickstilwell52 Oct 30, 2023
82ac4b7
added thinking dude to quiz
ryanstew95 Oct 30, 2023
87c145a
fixed last score not updating to congrads page problem
ryanstew95 Oct 31, 2023
cc76cd2
Merge pull request #12 from ryanstew95/ryan4
ryanstew95 Oct 31, 2023
e4eb7e3
Merge branch 'master' into timer
ychento Oct 31, 2023
d55c134
styling front page
ychento Oct 31, 2023
af793d3
edit css code for quiz page - choices
ychento Oct 31, 2023
18e3585
updated readme
ryanstew95 Oct 31, 2023
1b29f4c
Merge pull request #13 from ryanstew95/tuesday
ryanstew95 Oct 31, 2023
3af498e
Merge branch 'master' of github.com:ryanstew95/final_project
ychento Oct 31, 2023
5d626ba
added question counter
ryanstew95 Oct 31, 2023
77b4a3c
Merge branch 'master' into tuesday
ryanstew95 Oct 31, 2023
07e9306
fixed styling on pages
ryanstew95 Oct 31, 2023
b5a7284
Merge pull request #14 from ryanstew95/tuesday
ryanstew95 Oct 31, 2023
6acf858
moved image over and added question counter
ryanstew95 Oct 31, 2023
16ef0d0
Merge pull request #15 from ryanstew95/tuesday
ryanstew95 Oct 31, 2023
646d37e
handle swap button
mhosseinsafi Oct 31, 2023
a15e2a3
added some styling to the front and instructions page
ryanstew95 Oct 31, 2023
ba5a8be
added styling to front page
ryanstew95 Nov 1, 2023
56183bc
Merge pull request #16 from ryanstew95/wednesday
ryanstew95 Nov 1, 2023
d7de2e3
merge
ryanstew95 Nov 1, 2023
a053d34
add css normalizer
nickstilwell52 Nov 1, 2023
7a349b2
merge
ryanstew95 Nov 1, 2023
b544156
added a header components for logo description and mute button
ryanstew95 Nov 1, 2023
b33c02f
Merge pull request #17 from ryanstew95/wednesday
ryanstew95 Nov 1, 2023
88bf9b6
changed max nickname length to 12
ryanstew95 Nov 1, 2023
39b8322
create new game over page when time is out or lives are out
ychento Nov 2, 2023
8892b21
added completion time to db
ryanstew95 Nov 2, 2023
6cfd584
fixed a reseting db problem
ryanstew95 Nov 2, 2023
046cba1
Merge branch 'master' of github.com:ryanstew95/final_project
ychento Nov 2, 2023
01c4b8b
sorting based on time
ryanstew95 Nov 2, 2023
c2bd51f
commiting changes
ryanstew95 Nov 2, 2023
58902d3
fixed merging issues
ryanstew95 Nov 2, 2023
c522050
cleaned up code
ryanstew95 Nov 2, 2023
9750601
question counter is working with skip now
ryanstew95 Nov 2, 2023
14d8621
got rid of huge padding on front page
ryanstew95 Nov 2, 2023
53fadde
adjusted header
ryanstew95 Nov 2, 2023
35e1228
center home page
ryanstew95 Nov 2, 2023
91b4d6f
Merge pull request #19 from ryanstew95/thursday
ryanstew95 Nov 2, 2023
1a4ab34
fixed problem with state needing to change when at 0 lives for game over
ryanstew95 Nov 2, 2023
96e1db1
add initial code for mute button and more sounds
nickstilwell52 Nov 2, 2023
f78792f
Merge branch 'master' into update-sound
nickstilwell52 Nov 2, 2023
2f86c31
handle all buttons functionality
mhosseinsafi Nov 2, 2023
0f6db23
scores sorted by time now
ryanstew95 Nov 2, 2023
298b1d5
merge swap_button branch to master
mhosseinsafi Nov 2, 2023
28536e1
merge
ryanstew95 Nov 2, 2023
9f66c5d
edited name in db
ryanstew95 Nov 3, 2023
5a77758
fix question counter and handle next click
ryanstew95 Nov 3, 2023
55bda55
redirecting to gameover instead of home now
ryanstew95 Nov 3, 2023
94694aa
fixed game over issue
ryanstew95 Nov 3, 2023
197b0cd
lives running out working now
ryanstew95 Nov 3, 2023
376bba0
deleted some commented out code
ryanstew95 Nov 3, 2023
e7b5f13
removed last score varible and refactored score
ryanstew95 Nov 3, 2023
86c955c
Merge pull request #21 from ryanstew95/refactoring-score
ryanstew95 Nov 3, 2023
b6f2c26
add appcontext, more sounds
nickstilwell52 Nov 3, 2023
70d48ce
add sound to instructions page
nickstilwell52 Nov 3, 2023
ab7bcda
Merge branch 'master' into update-sound
nickstilwell52 Nov 3, 2023
a1f8f14
add container for mute button styling
nickstilwell52 Nov 3, 2023
ece5dc3
add mute button to quiz page
nickstilwell52 Nov 3, 2023
828e803
add sounds to quiz page
nickstilwell52 Nov 3, 2023
33d8620
crop instruction asset
nickstilwell52 Nov 3, 2023
a669918
fix css border hover bug
nickstilwell52 Nov 3, 2023
37b8373
remove too low specificity selectors
nickstilwell52 Nov 3, 2023
8dd8574
update header css
nickstilwell52 Nov 3, 2023
eb6b03a
fix opaque pixels
nickstilwell52 Nov 3, 2023
c20a221
Merge pull request #22 from ryanstew95/update-sound
nickstilwell52 Nov 3, 2023
95ff5b3
styling changes
ryanstew95 Nov 3, 2023
24af3cf
Merge
ryanstew95 Nov 3, 2023
c04bfb8
edited styling on congrads page
ryanstew95 Nov 4, 2023
9943bd7
styling for game over page
ychento Nov 4, 2023
c4bd3b6
fix the bug for container height to 100%
ychento Nov 4, 2023
ac77b66
change height of Round Number on quiz page
ychento Nov 4, 2023
d5ae5d5
change padding of game container
ychento Nov 4, 2023
7ef3efd
change the position of buttons on main page, and location of the phot…
ychento Nov 4, 2023
53578c5
styling for congrats page
ychento Nov 4, 2023
645d41d
delete favicon
mhosseinsafi Nov 4, 2023
7fbde8f
change font for submit button
mhosseinsafi Nov 4, 2023
ab17efb
add font style link
mhosseinsafi Nov 4, 2023
73680f6
add font style to game page and the buttons
mhosseinsafi Nov 4, 2023
a81a01f
change leaderboard font
mhosseinsafi Nov 4, 2023
960b548
change font in congrads page
mhosseinsafi Nov 4, 2023
388a87f
remove black outline
mhosseinsafi Nov 4, 2023
10e759a
merge master
mhosseinsafi Nov 4, 2023
3e4f445
change font in gameover page
mhosseinsafi Nov 4, 2023
568d3e7
Merge pull request #23 from ryanstew95/refactore
mhosseinsafi Nov 4, 2023
e0637cc
styling changes for mostly the instuctions page
ryanstew95 Nov 4, 2023
e352530
merge
ryanstew95 Nov 4, 2023
0482ee4
change some styling around after merge
ryanstew95 Nov 4, 2023
dca5bee
changing spacing of a few things
ryanstew95 Nov 4, 2023
b837c3e
Merge pull request #24 from ryanstew95/touchups
ryanstew95 Nov 4, 2023
930f792
added cap L to front page and revert some styling changes on header
ryanstew95 Nov 4, 2023
1e0a760
add space after option letter
nickstilwell52 Nov 4, 2023
0704b04
various css tweaks
nickstilwell52 Nov 4, 2023
536d9b3
grabs swap count
ryanstew95 Nov 4, 2023
1de79b9
Merge pull request #25 from ryanstew95/update-css2
nickstilwell52 Nov 4, 2023
9d1cc25
merge
ryanstew95 Nov 4, 2023
240a79b
game over font change
mhosseinsafi Nov 4, 2023
ff93eb7
css for two button in intruction page
mhosseinsafi Nov 4, 2023
32f4e00
change font in instruction page
mhosseinsafi Nov 4, 2023
5810fa9
remove hearts for lives
mhosseinsafi Nov 4, 2023
448b78b
changes
ryanstew95 Nov 4, 2023
4c7b86c
change colour for the answers
mhosseinsafi Nov 4, 2023
2781722
change font in instruction
mhosseinsafi Nov 5, 2023
45d0c2c
Merge pull request #26 from ryanstew95/fonts_and_style
mhosseinsafi Nov 5, 2023
60303ac
adding lifeline counting function on game over page
ychento Nov 5, 2023
5916d4b
merge lifeline counting function
ychento Nov 5, 2023
9948db0
add stats to congrads and gameover pge
ryanstew95 Nov 5, 2023
4e9feb9
Co-authored-by: nick stilwell <[email protected]>
ryanstew95 Nov 5, 2023
55ee575
merge
ryanstew95 Nov 5, 2023
beddd33
some css and display for leaderboard
ryanstew95 Nov 5, 2023
7525f81
styling on gameover and colour change on quiz
ryanstew95 Nov 5, 2023
7e2d980
edited game stats
ryanstew95 Nov 5, 2023
24006bf
Merge pull request #27 from ryanstew95/style-stuff
ryanstew95 Nov 5, 2023
e4b290b
update instructions page, and congrads page
nickstilwell52 Nov 5, 2023
8f64e05
fix li padding
nickstilwell52 Nov 5, 2023
e78c5a6
Merge pull request #28 from ryanstew95/instructions-2
nickstilwell52 Nov 5, 2023
a11e6c6
moved buttons over on GO page
ryanstew95 Nov 6, 2023
086fa96
Merge pull request #29 from ryanstew95/style-stuff
ryanstew95 Nov 6, 2023
005ce17
added four name to db
ryanstew95 Nov 6, 2023
a031827
redirect from gameover page to play again bug fix
mhosseinsafi Nov 6, 2023
6b51046
updated the readme
ryanstew95 Nov 6, 2023
ce8fb24
Merge pull request #30 from ryanstew95/readme
ryanstew95 Nov 6, 2023
6ffdfe6
add style to buttons
mhosseinsafi Nov 6, 2023
1c76444
merge to master
mhosseinsafi Nov 6, 2023
56558cc
Merge pull request #31 from ryanstew95/final-edit
mhosseinsafi Nov 6, 2023
9ebe8f7
few small db changes
ryanstew95 Nov 14, 2023
ac0f452
deleted Endpoint to update a nickname
ryanstew95 Nov 21, 2023
36ffbcd
made template to add more questions
ryanstew95 Nov 21, 2023
6c0a1d8
started to add more questions in a text file
ryanstew95 Dec 4, 2023
f46ec2c
wrote out some more questions
ryanstew95 Dec 4, 2023
e3fbbd9
adding the answers to the questions
ryanstew95 Dec 6, 2023
8fd84b4
getting ready to make third seed file
ryanstew95 Jan 5, 2024
dab13a5
adding more questions to seed file
ryanstew95 Jan 6, 2024
c80ccfd
added more questions to 03_seeds file
ryanstew95 Jan 19, 2024
921a164
added more questions and getting ready to deveploy
ryanstew95 Jan 23, 2024
4a8afe0
Merge pull request #32 from ryanstew95/adding-to-db
ryanstew95 Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
100 changes: 76 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,98 @@
# React + Express No-Fluff Boilerplate
![quizjs](react-front-end/src/asset/THELOGO.png)
![quizjs](react-front-end/src/asset/smaller-dude.png)
## Final Product

A boilerplate project for anyone interested in making a project that uses React and Express.
### Home Page
![home](react-front-end/src/asset/home.png)

This repository is a bootleg of @NimaBoscarino's [React Rails Boilerplate](https://github.com/NimaBoscarino/react-rails-boilerplate). It uses the same React app, but replaces the Rails server with an Express server.
### Instruction Page
![info](react-front-end/src/asset/info.png)

Note! This boilerplate has _no fluff_! That means that there's nothing set up for you to do authentication stuff, there's no Redux stuff, and there's no React Router stuff. On the Express end, there is no session storage or database connection.
### Quiz Page
![quiz](react-front-end/src/asset/quiz.png)

The main important bit is that the React project has `proxy` set to `localhost:8080` in the `package.json` file, and that the Express app listens to port 8080 in `server.js`. Take a look!
### Game Over Page
![gameover](react-front-end/src/asset/gameover.png)

You can (and perhaps should) rename the directories `express-back-end` and `react-front-end` if you want-- The name doesn't matter.
### Congrads Page
![congrads](react-front-end/src/asset/congrads.png)

## Running the projects
## Getting Started

You need **TWO** terminal windows/tabs for this (or some other plan for running two Node processes).
1. Create database in PostgreSQL called quiz_app
2. Create the `.env` by using `.env.example` in the back-end folder
3. Update the .env file with your correct local information
- username: `labber`
- password: `labber`
- database: `quiz_app`
4. Install dependencies on both the front and back-end: `npm i`
5. Reset database: `node reset-database.js`
6. cd into back-end folder, Run the server: `npm run go`
7. cd into front-end folder, Run the client: `npm start`
8. Visit http://localhost:3000/

In one terminal, `cd` into `react-front-end`. Run `npm install` or `yarn` to install the dependencies. Then run `npm start` or `yarn start`, and go to `localhost:3000` in your browser.
## Navigating the app

In the other terminal, `cd` into `express-back-end`. Run `npm install` or `yarn` to install the dependencies, then `npm start` or `yarn start` to launch the server.
### Home page
- On the home page you see the top 24 high scores
- You can hit play to start the quiz or look at the Instructions page

In the browser, you can click on the button and see the data get loaded.
### Instructions page
- On this page you learn how to play and how the point system works

If this doesn't work, please message me!
### Quiz page
- This page is the game it's self
- Here you answer questions, earn points, and use hints if you stuck
- You score and game stats are being recorded as you go along
- you have a 5 min time limit to finish the quiz

## Next steps
### Congrads Page
- This is where you will see your score, final time and other game stats
- You enter in a nickname
- if you scored high enough your score will be added to the leader board
- after submiting your nickname you will be sent back to the home page

From here, you can start working on your project!
## How to Reset the database

As soon as the dependencies are installed, your Express server can serve JSON and static assets (like images) in response to API calls from the React app. You can get started on developing your React app, routing plan, etc. right away! Any request that isn't handled by React is passed on to the Express server. That means that you can call a route like `/api/users` from React using `fetch`, `axios`, or something else, and Express will receive it as though they originated from the same app. For routing, best practice is to namespace all of your data routes to `/api`, so that they don't clash with other routing schemes, like React Router.
- Use the `node reset-database.js` command in the back-end each time there is a change to the database schema or seeds.
- It runs through each of the files, in order, and executes them against the database.
- Note: you will lose all newly created (test) data each time this is run, since the schema files will tend to `DROP` the tables and recreate them.

At some point, you'll likely want to install and configure a database driver for Postgres or MongoDB-- Refer to past projects for hints on how to do this.
## Dependencies

And don't forget to update the README!
- normalize.css 12.0.0
- animation.css 4.1.1
- axios: 0.18.1
- postcss-normalize 10.0.1
- react: 16.8.6
- react-dom: 16.8.6
- react-router-dom: 6.17.0
- react-scripts: 2.1.8
- sanitize.css 13.0.0
- body-parser: 1.20.2
- chalk: 4.1.2
- cors: 2.8.5
- dotenv: 16.3.1
- express: 4.18.2
- fs: 0.0.1-security
- knex: 3.0.1
- nodemon: 1.18.7
- pg: 8.11.3
- whatwg-fetch: 3.6.19

## Example Projects
## Starting the server and the client

You might want to look at examples of projects that have used this boilerplate for hints on how to extend it. Here are a few:
1. Run the server: `npm run go`
2. Run the client: `npm start`
3. Visit: http://localhost:3000/

* [Later Cart](https://github.com/bonitac/later-cart)
* [Buddi.io](https://github.com/Danny-Tran/buddi.io)

If you'd like your project added to the list, please shoot me a message.
## The team

## Contact
- Nick Stilwell: https://github.com/nickstilwell52

Please contact me on Slack (@garrettgsb) or Nima at `[email protected]` if you have any questions, requests, or feedback, or post an issue to this repo. If you are using the boilerplate, I'd love to hear from you as well!
- Yiyao Chen: https://github.com/ychento

- Hossein Safi: https://github.com/mhosseinsafi

- Ryan Stewart: https://github.com/ryanstew95
7 changes: 7 additions & 0 deletions express-back-end/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DB_HOST=
DB_USER=
DB_PASS=
DB_NAME=
DB_PORT=
DB_SSL=
DATABASE_URL=
166 changes: 166 additions & 0 deletions express-back-end/db/more_questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# More Questions

## Round Two

When can you add two to eleven and get one as the correct answer?
A. When you add two hours to eleven o'clock, you get one o'clock. (correct answer)
B. When you add two minutes to eleven minutes past an hour, you get one minute past the next hour.
C. When you add two months to November, you get January, which is the first month of the year.
D. When you add two days to the 11th day of the month, you get the 1st day of the next month.
`Hint: Think of time`

What do these words have in common? Fed, Moon, Bab, Feed, High
A. The words are all related to astronomy.
B. The words are made up of 3 consecutive letters of the alphabet. (correct answer)
C. The words are all palindromes.
D. The words are all related to eating and food.
`Hint: Pay attention to the vowels in each word and their arrangement`

Which of the following words does not belong with the others and why? Father, Aunt, Sister, Cousin, Mother, Uncle
A. Father
B. Aunt
C. Cousin (correct answer)
D. Sister
`Hint: Think about the pronouns for each word`

What does no man want, yet no man wants to lose?
A. His partner
B. Gun
C. Car
D. A bald head (correct answer)
`Hint: Something men lose with age`

Which word below logically comes next in the following list? Choice, Box, Kick, Oboe
A. Dice (correct answer)
B. Box
C. Kick
D. Oboe
`Hint: Think alphabetically`

If it takes six men six days to dig six holes, how long will it take one man to dig half a hole?
A. Nine days
B. There is no such thing as half a hole. A hole is a hole. (correct answer)
C. Three days
D. One day
`Hint: Can there be half a hole?`

What is very unusual about the following words? Bough, Cough, Dough, Rough, Through
A. They are in alphabetical order
B. Hard to spell
C. They all end in O-U-G-H, and none of them rhyme. (correct answer)
D. All the above
`Hint: Read each word out loud and think about how they sound`

How high would you have to count before you would use the letter A in the English language spelling of a whole number?
A. One hundred
B. One million
C. Ten
D. One Thousand (correct answer)
`Hint: Consider the alphabetical order of the English language spelling of numbers.`

Why is a manhole cover round? (Give two reasons.)
A. It cannot fall through the hole and it can easily be moved by rolling (correct answer)
B. A round cover is more cost-effective to manufacture than other shapes.
C. Round covers are less likely to injure someone if accidentally dropped or rolled.
D. A round shape ensures that the cover will fit securely into the manhole opening, preventing debris and water from entering.
`Hint: Think about the problems having a round cover would solve`

What is the next letter in the following sequence? M A M J J A S O
A. A
B. N (correct answer)
C. B
D. C
`Hint: Think of a calendar`

A pair of twins is how many people?
A. Four
B. One
C. Two (correct answer)
D. Six
`Hint: How many is a twin`

What do these words have in common? Tram, Dial, Spool, Ward, Decal, Strap
A. Each word is a palindrome.
B. Each word is related to transportation.
C. Each word is a type of tool.
D.Each word forms another word when the letters are reversed. (correct answer)
`Hint: Consider the arrangement and reversal of letters in each word`

Which word logically comes next in the list below? Shine, Light, Stone, Struck, Beam
A. Less (correct answer)
B. Bright
C. Heavy
D. Stable
`Hint: Think about the sequence and its relation to weight or intensity.`

## Round Three

What do these five-letter words have in common? Deity, First, Forty, Abort, Films, Abhor
A. The words are all related to numbers.
B. The letters in each word are in alphabetical order. (correct answer)
C. Each word has four consonants and one vowel
D. The letters in each word are in reverse alphabetical order
`Hint: Consider the arrangement of letters in each word`

Rearrange the following letters to make one word. NEW DOOR
A. OWN RODE
B. RED WOON
C. ONE WORD (correct answer)
D. WORN DOE
`Hint: Think literally`

Which one does not belong? French, Nun, Malayalam, Too hot to hoot, Race car, Puff up
A. Nun
B. Too hot to hoot
C. Race car
D. French (correct answer)
`Hint: Your looking for the one that is not a palindrome`

What came first, the chicken or the egg?
A. The egg (correct answer)
B. The chicken evolved from a bird that was not quite a chicken, laying the first chicken egg
C.
D.
`Hint: Think about the natural progression of life cycles.`

A particular pumpkin weighs 3/4 of a pound plus 3/4 of a pumpkin. How much does this pumpkin weigh?
A. One pound
B. Three pounds (correct answer)
C. two pounds
D. 1.5 pounds
`Hint: Consider the wording carefully`

How can it be that a man was once married to the sister of his widow?
A.
B.
C.The man married his wife's sister first (correct answer)
D.
`Hint: Pay attention to the wording and relationships`
// null values here
What is the third hand on a watch or clock called?
A.
B. The hour hand
C.
D.The second hand (correct answer)
`Hint: Consider the typical functions of the hands on a clock`
// null values here
Joanne's birthday is January 15th, but she always celebrates it in the summer. Why?
A.Joanne lives in the southern hemisphere (correct answer)
B.
C.
D.
`Hint: Think about global differences`

Ben can never tell a lie. George can never tell the truth. One of them said, "The other one said he is George." Which one said that?
A. Neither
B. George (correct answer)
C. Ben
D. Both
`Hint: Consider the implications of each person's statement`

If a wheel has 64 spokes, how many spaces are there between the spokes?
A. 62
B. 65
C. 64 (correct answer)
D. 63
`Hint: Visualize the spaces between the spokes`
Loading