Skip to content

Commit b57d62c

Browse files
committed
docs: update installation instructions and add local execution steps for API and frontend
1 parent e9e0580 commit b57d62c

2 files changed

Lines changed: 105 additions & 91 deletions

File tree

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,40 @@ Bot de automacao para buscar vagas no LinkedIn com foco em Brasil remoto e expor
2727
## Instalacao
2828

2929
1. Clone o projeto
30-
2. Rode `npm install`
30+
2. Instale dependencias do backend (raiz): `npm install`
31+
3. Instale dependencias do frontend: `npm install --prefix frontend`
3132

3233
## Execucao
3334

3435
- Producao: `npm start`
3536
- Desenvolvimento: `npm run dev`
3637
- Hot reload: `npm run run`
3738

39+
## Execucao local completa (API + Frontend)
40+
41+
1. Gere o arquivo de vagas na pasta `output` (opcional, mas recomendado):
42+
43+
```bash
44+
npm start
45+
```
46+
47+
2. Inicie a API em um terminal:
48+
49+
```bash
50+
npm run api
51+
```
52+
53+
3. Inicie o frontend em outro terminal:
54+
55+
```bash
56+
npm run frontend:dev
57+
```
58+
59+
4. Acesse:
60+
61+
- Frontend: `http://localhost:5173`
62+
- API: `http://localhost:3001`
63+
3864
## Painel Frontend (React + Vite + Tailwind + shadcn)
3965

4066
Foi adicionada uma interface web para visualizar as vagas do arquivo Excel gerado em `output`.
@@ -60,6 +86,16 @@ npm run frontend:dev
6086
http://localhost:5173
6187
```
6288

89+
### Observacao importante sobre dependencias
90+
91+
Se aparecer o erro `'vite' nao e reconhecido como um comando interno ou externo`, execute:
92+
93+
```bash
94+
npm install --prefix frontend
95+
```
96+
97+
Isso instala as dependencias do app React dentro de `frontend/node_modules`.
98+
6399
### Scripts adicionados
64100

65101
- `npm run api`: inicia API em `http://localhost:3001`

frontend/package-lock.json

Lines changed: 68 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)