GithubHelp home page GithubHelp logo

mongo-node's Introduction

mongo-node

Cours 1 :

Création de cluster sur MondoDB Atlas Installation de MongoDB Compass Connexion du cluster MongoDB altas sur Compass

plasticité = document => schema dynamique

Cours 2 :

couche controlleur/service Création d'une api pour gérer des chiens, on utilise express

Erreurs

1

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client https://stackoverflow.com/a/7086621/14648427 https://nodejs.org/api/http.html#responsewriteheadstatuscode-statusmessage-headers

J'avais appelé setHeader après writeHead, car writeHeader envoi les headers en réponse du coup on ne peu plus rajouté des headers

2

Cannot read properties of undefined (reading 'name') https://stackoverflow.com/questions/10005939/how-do-i-consume-the-json-post-data-in-an-express-application#:~:text=Starting%20with%20release%204.16.0%2C%20a%20new%20express.json()%20middleware%20is%20available. Essayer d'accéder au body quand on fait un post, le probleme est qu'il faut le convertir en JSON, pour cela j'utilise le middleware pour parser le body en json

todo swager todo expliquer import module au lieu de require

Cours 3 :

Layout routes/services/controllers

Permet de réutiliser le code et l'ajout de layout permet d'absorder la complexité

Cours 4 :

Authentification via JWT

mongo-node's People

Contributors

ag7-alexis avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.