NSS-Day-Cohort-49 / tabloid-mvc-streamers

tabloid-mvc-streamers created by GitHub Classroom
0 stars 0 forks source link

Create a Post #42

Open joshdbarton opened 3 years ago

joshdbarton commented 3 years ago

As an author, I would like to be able to create Posts so I can share my thoughts with the world.

Given a user is in the app
When they select the New Post menu option Then they should be directed to a page with a form for creating a new post

Given the user has entered the relevant information for a Post When they click the Save button
Then the Post should be saved to the database
And the creation datetime should be automatically set to the current date and time
And the post should automatically be approved
And the user should be recorded as the author of the Post
And the user should be redirected to the new Post's details page

The "relevant information" for a Post is

dparsley1203 commented 3 years ago

Ticket appears to be done. Able to create new post. Confirmed data is saved to database. "IsApproved" is set to true on all new posts. Shows who wrote post User is routed to detail page