Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desafio-dev-junior-b2u-Complete #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions back-end/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PORT=
DATABASE_URL=
JWT_SECRET=
6 changes: 6 additions & 0 deletions back-end/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist
node_modules
.env*
!.env.example
yarn.lock
.vscode
23 changes: 23 additions & 0 deletions back-end/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# Back-end Desafio

Para iniciar o projeto:

1- Em seu terminal, execute: git clone "Link do projeto"

2- Após isso, execute em seu terminal para instalar as dependências: 'npm i'

3- Configure o arquivo .env seguindo o modelo

4- PARA EXECUTAR O DUMP.SQL LOGO ABAIXO

5- Em seu terminal, instale a dependência Nodemon de forma global com o seguinte comando: 'npm install -g nodemon'

6- Por fim, na pasta back-end, execute: nodemon src/app.js


Para executar o arquivo dump.sql em seu terminal:

1. No terminal execute: `sudo -i -u postgres`
2. Navegar até o diretório onde está o arquivo de dump
3. `psql nome_banco < dump.sql`
Binary file added back-end/dump.sql
Binary file not shown.
Loading