Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Implement voting #16

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7ae9c6f
Initialize project using Create React App
AdedejiAdelanwa Sep 29, 2021
4f33adb
chore: Delete files not needed
AdedejiAdelanwa Sep 29, 2021
f62fb4b
chore: Delete files not needed
AdedejiAdelanwa Sep 29, 2021
ce7318e
feature: Set up actions and reducers for users and
AdedejiAdelanwa Sep 29, 2021
9bd6b25
feat: Authenticate user
AdedejiAdelanwa Oct 3, 2021
38d40c2
fix: Git issues
AdedejiAdelanwa Oct 3, 2021
b969cbe
feat: Create the navbar component
AdedejiAdelanwa Oct 3, 2021
7b62702
fix: Move assets folder into the public directory
AdedejiAdelanwa Oct 4, 2021
5567c5b
fix: Complete navbar component
AdedejiAdelanwa Oct 4, 2021
f245784
fix: Add padding to navlink to fix the janky transition on active link
AdedejiAdelanwa Oct 4, 2021
46da457
feat: Add persistence to redux store
AdedejiAdelanwa Oct 4, 2021
320d469
feat: Complete question component
AdedejiAdelanwa Oct 4, 2021
3b32d83
feat: Separate questions to appropriate tabs
AdedejiAdelanwa Oct 4, 2021
5f2f99e
feat: Sort questions based on how recent
AdedejiAdelanwa Oct 5, 2021
80e81d6
feat: Link a question to its details page
AdedejiAdelanwa Oct 5, 2021
06e6d31
feat: Add answered question details
AdedejiAdelanwa Oct 5, 2021
b927eb1
refactor: Change storage from local to session
AdedejiAdelanwa Oct 5, 2021
1e97331
feat: Add button to unanswered question
AdedejiAdelanwa Oct 5, 2021
5396570
refactor: Change the structure of question details
AdedejiAdelanwa Oct 7, 2021
c90a24e
feature: Make request to vote to db
AdedejiAdelanwa Oct 8, 2021
b6fb94f
fix: Pass proper arguments to saveQuestionAnswer function
AdedejiAdelanwa Oct 8, 2021
77cec1b
fix: Round up/down of percentage of voters in question details
AdedejiAdelanwa Oct 9, 2021
7702f9c
refactor: Route app to signin page on load
AdedejiAdelanwa Oct 9, 2021
c90b16b
feat: Voting mechanism completed
AdedejiAdelanwa Oct 9, 2021
8e7f211
refactor: Declare a question variable and set to question.questionId
AdedejiAdelanwa Oct 9, 2021
a17ab5c
refactor: Remove link component from sign in page
AdedejiAdelanwa Oct 13, 2021
11a34d2
fix: Wrap math.round around all values in unanswered question
AdedejiAdelanwa Oct 13, 2021
1d01e95
fix: Fix typo error in option two in answered component
AdedejiAdelanwa Oct 13, 2021
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
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
<<<<<<< HEAD
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
=======
.DS_Store
>>>>>>> 9375bb04f6e3ec94c87619f85a2995001fe2a578
73 changes: 73 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
<<<<<<< HEAD
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
=======
# Would You Rather Project

This is the starter code for the final assessment project for Udacity's React & Redux course.
Expand Down Expand Up @@ -98,3 +170,4 @@ Your code will talk to the database via 4 methods:
## Contributing

This repository is the starter code for *all* Udacity students. Therefore, we most likely will not accept pull requests. For details, check out [CONTRIBUTING.md](https://github.com/udacity/reactnd-project-would-you-rather-starter/blob/master/CONTRIBUTING.md).
>>>>>>> 9375bb04f6e3ec94c87619f85a2995001fe2a578
202 changes: 0 additions & 202 deletions _DATA.js

This file was deleted.

Loading