https://github.com/paulos3r/estudo-nodejs-banco
Projeto criado para aprender banco de dados integrado com nodeJS
https://github.com/paulos3r/estudo-nodejs-banco
Last synced: 2 months ago
JSON representation
Projeto criado para aprender banco de dados integrado com nodeJS
- Host: GitHub
- URL: https://github.com/paulos3r/estudo-nodejs-banco
- Owner: paulos3r
- Created: 2022-03-22T14:09:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T12:45:53.000Z (about 3 years ago)
- Last Synced: 2025-01-25T10:13:31.197Z (4 months ago)
- Language: TypeScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# estudo-nodejs-banco
Projeto criado para aprender banco de dados integrado com nodeJS### PASSO A PASSO
`1 - tsc --init`,
`2 - npm install express mustache-express dotenv`,
`3 - npm install --save-dev @types/express @types/mustache-express @types/node`,
`4 - npm install -g nodemon typescript ts-node`,
`5 - npm install --save-dev copyfiles`### biblioteca orm
`npm install --save sequelize`,
`npm install --save-dev @types/sequelize`,
`npm install pg pg-hstore`### biblioteca de terceiros para manipulação
`npm install body-parser`,
### estrutura
- estudo-nodejs-banco
- /public
- /css
- /js
- /img
- /src
- /controllers
- /instances
- /models
- /routes
- /views
- /pages
- /partials
- server.tsrouter -> controller -> model -> instances
### rodar o projeto
`npm install`,
`npm run start-dev`