hack4impact-calpoly / cp-ccc-uss

2 stars 0 forks source link

13: Created CreateEvent Component #33

Closed kaseyliu closed 3 months ago

kaseyliu commented 3 months ago

Developer: {Kasey Liu, Amanda Chan}

Closes #13

Pull Request Summary

We created a CreateEvent form including fields like title, start time, end time, date, and description. There is also a button for the AddQuestion component, but for now there is no functionality to it. We then created a POST request to create an event with all the given data. We made the form and roles default for now, as they were not fields specified on the design, but they were specified in the schema.

Modifications

CreateEvent.tsx: Created fields for title, start time, end time, date picket for date, and description. made a POST request to create an event with this data.

Testing Considerations

Tested that the event shows up in MongoDB and that the fields are filled out correctly with console.log for the data filled out.

Pull Request Checklist

Screenshots/Screencast

website:

Screenshot 2024-02-29 at 3 31 12 PM

console:

Screenshot 2024-02-29 at 2 31 04 PM

mongo:

Screenshot 2024-02-29 at 2 31 21 PM