Skip to content

Commit

Permalink
A new start
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Nov 15, 2024
0 parents commit f576a47
Show file tree
Hide file tree
Showing 117 changed files with 25,463 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.env*
.env
*.pptx
*.ppt
*.pdf
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.data
.dump

.venv*

node_modules/
54 changes: 54 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# === LLM ===
ANTHROPIC_API_KEY=""

AZURE_OPENAI_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_VERSION="2024-02-15-preview"
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME="gpt-35-turbo-16k"

TOKENIZERS_PARALLELISM=false

# === Frontend ===
REACT_APP_API_PORT=8080
API_PORT=8080
APP_PORT=3001
APP_URL='http://localhost:3001'
BACKEND_HOST='http://localhost:8080'

# === backend ===
DEV=true
PATH_TO_DATA='./.data/db_deploy'
API_JWT_KEY='your-secret-key'
REACT_APP_API_URL='http://localhost:8080/api'

# === postgres ===
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=ipa-scout
POSTGRES_USER=postgres
POSTGRES_PASSWORD=insecure

# === alembic ===
# Set to true to run the alembic migrations on build
RUN_MIGRATIONS=False

# === Minio ===
MINIO_HOST=minio
MINIO_PORT=9000
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
BUCKET_NAME='default-bucket-3'

# === Deployment ===
DOCKER_BUILDER_CONTAINER=ipa-scout
APP_NAME=ipa-scout
AWS_ACCOUNT_ID=REPLACE_ME
AWS_REGION=eu-west-2
S3_URL='http://localhost:9000'
ENVIRONMENT=local


# Libreoffice Service
LIBREOFFICE_SERVICE_URL=http://localhost:5000


10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Context

## This PR contains:
- [ ] New features
- [ ] Changes to dev-tools e.g. CI config / github tooling
- [ ] Bug fixes
- [ ] Code refactor

## Guidance to review
How could someone else check this work? Which parts do you want more feedback on?
61 changes: 61 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Put action within a raw block so that the curly bracket expressions aren't picked up by the cookiecutter
#
name: Checks

env:
DOCKER_BUILDKIT: 1

on:
pull_request:

jobs:
static_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.0

- name: Install dependencies
run: |
poetry install --no-root --no-ansi --only dev
- name: Format code
run: |
poetry run ruff format . --check
poetry run ruff check .
run_tests:
name: Run tests

runs-on: ubuntu-latest
environment: release

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.7.0

- name: Install dependencies
run: |
poetry install --no-root --no-ansi --only dev
- name: Copy env file
run: |
cp .env.example .env
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Put action within a raw block so that the curly bracket expressions aren't picked up by the cookiecutter
#

name: pre-commit

on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
Loading

0 comments on commit f576a47

Please sign in to comment.