RSCodingClub / STUCO-Backend

MIT License
3 stars 0 forks source link

Do some long needed database improvements. #52

Open itotallyrock opened 7 years ago

itotallyrock commented 7 years ago

The current mongoose setup was made from a tutorial, take some time to understand it fully and set it up for future you. Make models better and relocate into new file structure. Use somewhat as a middleware if needed. Better error catching and throwing. Try wiping the database to see how the application responds. What happens when the database is down or not hosted locally or has a separate authentication databse? Sort all of these errors and make sure it won't be a source for any future issues.