You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the project structure we discussed on Saturday, based on which I will be creating issues. This is a starting design, and once we get all the main features in, it can be refined.
Summary
Homepage will display all the topics along with their ratings.
Clicking on "Add topic" takes you to a separate, where you fill in the details for the new topic.
Clicking on "Edit page" takes you a page that looks similar to "Add topic", where the name of the topic is already present and cannot be changed, and some of the fields might be filled in.
Handlebars setup:
Shared layout file, will contain the header. See below:
The homepage index.hbs, will contain the below:
Partial form.hbs
Because adding and editing share similar inputs (before class, after class, monday, wednesday, thursday, friday), these can be extracted away in a partial.
add.hbs
Will contain the form for adding a new topic
edit.hbs
Form for editing a topic
Routes
There should be a route for index, add and edit.
API
The app will have 3 API endpoints for dealing with topic requests:
getTopics - will retrieve all topics in the database
addTopic - will add a single topic to the database
editTopic - will edit an already existing topic in the database
Please comment below for any feedback.
The text was updated successfully, but these errors were encountered:
Here is the project structure we discussed on Saturday, based on which I will be creating issues. This is a starting design, and once we get all the main features in, it can be refined.
Summary
Homepage will display all the topics along with their ratings.
Clicking on "Add topic" takes you to a separate, where you fill in the details for the new topic.
Clicking on "Edit page" takes you a page that looks similar to "Add topic", where the name of the topic is already present and cannot be changed, and some of the fields might be filled in.
Handlebars setup:
index.hbs
, will contain the below:form.hbs
Because adding and editing share similar inputs (before class, after class, monday, wednesday, thursday, friday), these can be extracted away in a partial.
add.hbs
Will contain the form for adding a new topic
edit.hbs
Form for editing a topic
Routes
There should be a route for index, add and edit.
API
The app will have 3 API endpoints for dealing with topic requests:
getTopics
- will retrieve all topics in the databaseaddTopic
- will add a single topic to the databaseeditTopic
- will edit an already existing topic in the databasePlease comment below for any feedback.
The text was updated successfully, but these errors were encountered: