Skip to content

Instantly share code, notes, and snippets.

View descxcrs's full-sized avatar
🏠
Working from home

Desirée Cáceres descxcrs

🏠
Working from home
View GitHub Profile
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@descxcrs
descxcrs / restful_routes_mongoose.md
Last active October 16, 2019 11:58
RESTful Routes w/ Mongoose Methods
CRUD function Action Path HTTP Verb/Method Mongoose Method
- Index /plums GET Plum.find()
CREATE New /plums/new GET N/A
CREATE Create /plums POST Plum.create()
REVIEW Show /plums/:id GET Plum.findById()
UPDATE Edit /plums/:id/edit GET Plum.findById()
UPDATE Update /plums/:id PUT Plum.findByIdAndUpdate()
DESTROY Delete /plums/:id DELETE Plum.findByIdAndRemove()