This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(installation): add instructions on README
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# 2023-2-Squad06 | ||
|
||
# Guia de instalação | ||
|
||
## Resumo | ||
|
||
Para a instalação e a operação corretas, deve se ter instalado na máquina: | ||
- Python versão 3.11.5 | ||
- Poetry versão 1.6.1 | ||
|
||
Após verificar quanto aos requisitos acima, rode estes comandos: | ||
|
||
- `poetry install` | ||
- Se necessárias dependências de documentação, `poetry install --with docs` | ||
- Para instalar Git Hooks: | ||
```bash | ||
poetry run pre-commit install \ | ||
--hook-type commit-msg \ | ||
--hook-type pre-commit \ | ||
--hook-type pre-push | ||
``` | ||
- Gerar o arquivo config `poetry run ./bin/create-env` | ||
- Para finalizar a instalação e conseguir visualizar a página: | ||
|
||
- `docker compose build && docker compose up -d` | ||
- `docker compose run django python manage.py migrate` | ||
- `docker compose run django python manage.py createsuperuser` |