Posts4 Understanding the backend of Fullstack Part 4 This article will essentially look at the code at this link (github-branch 4-5). This is for the backend of the famous FullStackOpen course (link). This is how each file relates with another. - index.js runs app.js - app.js encapsulates all the middleware and router (notesRouter) set up and connection of mongoDB. - notes.js (exporting notesRouter) sets up access to database documents (Note) - no.. 2021. 7. 13. deploying frontend (react) and backend (express/node) I'm finally here! I've deployed the app. It's been a journey to get here, and glad that I can finally understand ins and outs of the deployment. Gones are the days where I would just blindly follow the tutorials, now I feel like I'm understanding each bits quite well. Some key understandings I needed were: - git remote -v - git remote add heroku https:....git - git push heroku main - cp -r, rm -.. 2021. 5. 9. [Heroku Deployment] It's been such a long time since I wrote an entry (3 months? - doesn't sound that long but it felt like I was on a long hiatus). I've recently started my long journey with full stack development. I know, I've started way earlier back in 2020 (I say 2020 is long ago, but I know it isn't), but I feel like only now I have enough skills to actually start learning about full stack development. Someth.. 2021. 5. 8. Set up database schema Database schema is nothing but a table. Database model is a class that encapsulates a certain database schema like a class, so that programmers can invoke method on it to manipulate that database. Imagine creating a database schema called 'User', that has fields relevant to User. How would you do it? const mongoose = require('mongoose') // creates a table with name, email, password column const .. 2021. 1. 3. 이전 1 다음