natewr / cyf-faq-group Goto Github PK
View Code? Open in Web Editor NEWThe FAQ app group project!
The FAQ app group project!
Assigned: @panditita
You need to implement the search form on the homepage, so that it finds matching results and only returns those results which match the request.
Currently the form submits a GET
request to the homepage router.get('/', ...)
. You can either extend the homepage route or add a custom route for search results. It's up to you. Either way, you'll need to:
Unassigned.
When users submit a question, we'll need a place where the questions without answers can be viewed. Users should be able to submit an answer to the question.
Unassigned.
Questions which users have submitted, but which don't yet have answers, should not appear in the homepage or the search results.
Everyone in the group should "watch" the repository. GitHub will notify you of new issues and pull requests on the repository when you are watching it, so you can keep track of everyone's work.
@khaledkzy, create an Entry data model using Mongoose. The data model should support:
Depending on your preference, it can include the total number of useful/not-useful votes too.
Assigned: @Yjohn
To implement the client-side functionality, you'll need to write everything that happens on the user side when they click the Helpful/Not Helpful buttons, and handle the response from the server.
POST
ajax request to /rating
containing the data keys entryId
and isHelpful
.Some resources which might help you:
Unassigned.
When displaying our entries, we should use the isHelpful
and isNotHelpful
data to rank the entries, with the most helpful ones appearing first.
How can we determine which entries are the most helpful? We'll discuss strategies as a group if we're able to implement this feature.
Assigned: @khaledkzy
Create a database named faq
with a collection named entries
. Add the database connection to the project and help get every other team member set up with the database locally, so that everyone is working on the same database.
Assigned: @Habiiba12
/ask-question
) that displays a form where a user can ask a new question.post
route (router.post('/ask-question', ...)
) should accept the posted form data, validate it, and throw an error if a question text field is empty. If it's not, it should add the question to the database.Assigned: @khaledkzy
Currently, the homepage reads from /data/entries.json
to display the questions. Convert this to use the database created in #3. Then help make sure all of your teammates have the entries in their local databases.
@Yjohn Add eslint to the project so that all the team can follow the same styling guidelines.
Unassigned.
If an entry is very unhelpful, we should hide it from the homepage and search results. How can we determine if an entry is very unhelpful?
Assigned: @khaledkzy
Create a new POST
route (/rating
) to accept the ajax requests from #6. Save the helpful or not-helpful vote to the database and return a response with the data needed to complete #6.
You'll need to work closely with @Yjohn to coordinate between this issue and #6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.