Baixe lista com enunciados em node js e outras Resumos em PDF para Programação Funcional, somente na Docsity!
CRUD application with Express and PostgresSQL in 10 steps 2019-10-15 javascript fnode sql The goal of this very simple project is to develop a Node JS application to learn how to: * Create a very basic website with Express. * Manage an SQL database (PostgresSQL in this case). This post is only a tutorial to understand how it works and to have a starting point to train myself gradually to Node and Express (and probably later to Sequelize). It is by no means a guide to good practice for developing "real" applications. Nor is it an article to learn how to program or to convince anyone to use Node, Express or SQL... The final JavaScript code is visible in the appendix at the end of the post. The complete code of the application (in french) is available on GitHub. At'the moment, there is no demonstration site for the completed project. | have not (yet) found an easy solution to host it. Maybe Il do another tutorial the day | deal with this problem. Note: This tutorial is pretty much a copy/paste of the tutorial CRUD application with Express and SQlite in 10 steps. If like me, you have already followed it, it will go quite quickly and it's a good review of what was presented there. Otherwise, it's not much more complicated and as everything is re-explained, it's not necessary to have followed the first tutorial with SQlite before starting this one with Express and PostgreSQL. Table of Contents 1. Create a new Node project 2. Add modules to the Node project 3. Create the Express application 4. Add EIS views 5, Use views in Express 6. First steps with the node-postgres module 7. Modify an existing row 8. Create a new row 9. Delete a row 10. Conclusion 1. Create a new Node project Create a folder for the project