==============
Installation
- Install nodeJS and npm from https://nodejs.org/en/download/
- Install yarn from https://classic.yarnpkg.com/en/docs/install/#mac-stable
- Install visual studio code from https://code.visualstudio.com/
- Install git or github from https://desktop.github.com/
- Clone this project to your local with git or github
- Now you can use (prefer yarn)
yarn install
or
npm install
- You are able to start this project with this command
yarn start
or
npm start
- Go to folder src/features/ , you should find the pages there to start your coding.
PROJECT OVERVIEW
Pages
- Navigation
- Home page
- Survey page: Question and Answer
- Result page
- Login page
- Footer
- Privacy
- Terms of use
Data
- Tables design
- Survey data format
- Convert data and upload to database
Communications
- Get content from Strapi
- Get survey question and answers from Strapi
- Send result back to Strapi
- Get results from Strapi
- Strapi authentication
Reports
- Show his/her result with chart
- Show total result
PROJECT TASKS ASSIGNMENT
- Design theme ( Bootstrap or material UI )
- Follow https://github.com/facebook/create-react-app to create react app and check in to github
- Follow tutorial https://www.youtube.com/watch?v=uRaDTvlwkB0 to create survey page which has one question and multiple options.
- Design Home page for announcement, and available surveys or quiz
- Design Result page which should have a chart from test result and overall result
- Figure out the format for survey and transform to serveyJS format.
- Define tables in strapi, one table type for contents, one table for serveys and one table for results
- Study strapi authentication for email login user or anonymous user. How to build authentication flow to frontend.
- international (i18n) for the website
- save source to github and deployment
- Logo design and other image design
API List:
Get all quizes: https://33.1122.ca/quizzes
Get all chaters by a quiz: https://33.1122.ca/chapters?quiz=5f6a35156254027e53ce24c0
Get all questions by a chapter: https://33.1122.ca/questions?chapter=5f6b6daa66863b0c0229d23e&_limit=-1
Reference: https://strapi.io/documentation/3.0.0-beta.x/content-api/parameters.html#available-operators
Contributors:
- George Zhang
- Alex Liu
- Jason Yang