MasterOfTheBus / Crescendo

A website to track piano progress
0 stars 0 forks source link

Create a "Exercise" Model #7

Closed chubchubcharles closed 7 years ago

chubchubcharles commented 7 years ago

NOTE: Should begin after development environment setup completed.

Implement the CRUD features for an Exercise, like so:

Exit Criteria:

UPDATE (02/04/2017): I meant to say 'exercises' for 'books' in the exit criteria.

chubchubcharles commented 7 years ago

UPDATE (02/01) It's after Chinese New Year vacation now, I still have to do this.... lol

MasterOfTheBus commented 7 years ago

http://mongoosejs.com/docs/api.html#query_Query-find

so I don't have to look for this link again

chubchubcharles commented 7 years ago

I am trying to test CRUD on "exercises" using the mongo shell, but I cannot find an "exercises" collection, whereas "users" has a collection...

I thought it may be because I needed to insert an "exercise" document in order to generate an "exercise" collection, but I didn't have to do that with "users" upon startup, so I think it has to do with some startup code that creates only "users" collection, but not "exercises" collection..

chubchubcharles commented 7 years ago

Nevermind, you really have to insert a document in order to start a collection.

chubchubcharles commented 7 years ago

We need a user interface for CRUD-ing exercises and also associate the User and Exercise models together.

MasterOfTheBus commented 7 years ago

yeah I agree. we may need to sync up about this

chubchubcharles commented 7 years ago

Since you've implemented the MongoDB functionalities for Exercises, I think we can close it.

@MasterOfTheBus close if you think it's good!

MasterOfTheBus commented 7 years ago

k we've got the issue in to modify exercises, so i'll close this out