A react app to create a poll.
cd mock-api && yarn install && yarn start
clone the project
select master branch
Navigate to the root folder:
yarn install && yarn start
browser listens to http://localhost:3000 as default port
- The app allows to create, read, update & delete questions & answers to build a simple questionnaire.
- It uses a fake DB to persist the data and relevant corresponding changes (crud operations).
- Once starting typing into question or answer input a Save button will appear on the right input corner which allows to save the inserted value.
- The button will dissapear after clicking Save.
- The app allows to push reordered question or answer to the bottom of the list if its the first question or answer and user hits ⌃ icon.
- The app allows to push reordered question or answer to the start of the list if its the first question or answer and user hits ⌄ icon.
At the moment the app handles also network errors, which are simulated by the fake back-end, for the following operations:
- Create question
- Read questions
- Create answer
- Reorder question up
- Reorder question down
- Delete Question
- Delete Answer
The app does not handle network failures for the following operations:
- Reorder answer up
- Reorder answer down
- Update question
- Update answer