https://github.com/artodeschini/node-faq
https://github.com/artodeschini/node-faq
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/artodeschini/node-faq
- Owner: artodeschini
- Created: 2022-06-24T16:25:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T21:12:03.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T16:56:25.925Z (over 1 year ago)
- Language: JavaScript
- Size: 505 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Projeto de Perguntas e Respostas FAQ
## requisitos
* javascript
* git
* sql
* postgres
* nodejs
* npm
* express
* ejs
* body-parser
* html
* css
* bootstrep
* docker
## install all tecnologias
```bash
npm clean-install
```
## start app em desenvolvimento
```bash
# para desenvolvimento
nodemon index.js
## in production
npm install pm2 -g --save
pm2 index.js
```
## install nodedemon para desenvolvimento nao parar o servidor
```bash
npm install nodedemon --save
```
## install express
```bash
npm install express --save
```
## install ejs
```bash
npm install ejs --save
```
## install body-parse pega os dados do formuário
```bash
npm install body-parser --save
```
## install sequelize para conexao com bancos de dados sql
```bash
npm install --save sequelize
```
## install postgres para conexoes com mariadb
```bash
npm install --save pg pg-hstore # Postgres
```
## docker postgres
```bash
docker run -d -p 5432:5432 -v ${PWD}:/share --name postgres -e POSTGRES_PASSWORD=postgres
## to create database into container
```
## restart container
```bash
docker restart postgres
```
## para rodar app em produção
```bash
sudo npm install -g pm2 # installar pm2
# start app como demon
pm2 start index.js # roda a app em background
```
## help git ver alteracoes realizadas
```bash
git log --oneline --graph
```
## git cria uma tag
```bash
git tag -a 1.0.0 -m "fianalizado com postgres"
```
## git checkout em uma tag especifica
```bash
git checkout tags/1.0.0
```
## git push tags
```bash
git push -u origin --tags
```