Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ RUN apt-get update && apt-get install -y \
curl \
nano \
vim \
procps \
lsof \
net-tools \
psmisc \
&& rm -rf /var/lib/apt/lists/*

# Install pre-commit
Expand Down
7 changes: 2 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"name": "laiive-monorepo",
"name": "laiive-devcontainer",
"dockerComposeFile": [
"../docker-compose.yml",
"../docker-compose.override.yml"
],
"workspaceFolder": "/workspace",
"service": "global-workspace",
"overrideCommand": false,
"forwardPorts": [
3000,
8000
],
"forwardPorts": [8000, 8001],
"features": {
"ghcr.io/devcontainers/features/git:1": {}
},
Expand Down
21 changes: 14 additions & 7 deletions .example.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
POSTGRES_USER=postgres # pragma: allowlist secret
POSTGRES_PASSWORD=mypassword # pragma: allowlist secret
POSTGRES_DB=laiive
POSTGRES_PORT=5432
POSTGRES_HOST=db # pragma: allowlist secret
# POSTGRES_USER=postgres_user # pragma: allowlist secret
# POSTGRES_PASSWORD=<your password> # pragma: allowlist secret
# POSTGRES_DB=laiive
# POSTGRES_PORT=5432
# POSTGRES_HOST=<db host> # pragma: allowlist secret

POSTGRES_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
# POSTGRES_URL=postgresql+asyncpg://postgres:mypassword@db:5432/events # pragma: allowlist secret
# POSTGRES_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}


NEO4J_URI=<neo4j+s://...>
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=<your password>
NEO4J_DATABASE=neo4j
AURA_INSTANCEID=<instancec id>
AURA_INSTANCENAME=<instance name>
File renamed without changes.
57 changes: 0 additions & 57 deletions LICENSES/THIRD_PARTY_LICENSES.md

This file was deleted.

52 changes: 6 additions & 46 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,19 @@ down:
logs:
docker-compose logs -f

# -----------------POSTGRES----------------------------------------------------------------------------------------------------
# note: to use docker exec to acces the db first exit the devcontainer in the shell.
db-exec:
docker exec -it laiive-postgres-db psql -U ${POSTGRES_USER} -d ${POSTGRES_DB}

# Backup the entire laiive database (schema + data)
# Backup the entire laiive database (schema + data)
db-backup:
docker exec laiive-postgres-db pg_dump -U ${POSTGRES_USER} -d ${POSTGRES_DB} > data/laiive_backup_$(shell date +%Y%m%d_%H%M%S).sql
# Backup only the schema (no data)
db-backup-schema:
docker exec laiive-postgres-db pg_dump -U ${POSTGRES_USER} -d ${POSTGRES_DB} --schema-only > data/laiive_schema_backup.sql

# Backup only the data (no schema)
db-backup-data:
docker exec laiive-postgres-db pg_dump -U ${POSTGRES_USER} -d ${POSTGRES_DB} --data-only > data/laiive_data_backup.sql

# Restore the laiive database from backup
db-restore:
docker exec -i laiive-postgres-db psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} < data/laiive_backup.sql

# ---------------SHELL FOR DEV INSIDE EACH SERVICE CONTAINER ------------------------------------------------------------------
shell-backend:
docker exec -it laiive-retriever-backend sh

shell-frontend:
docker exec -it laiive-frontend sh

shell-db:
docker exec -it laiive-postgres-db sh

# Update shell commands:
shell-pusher:
docker exec -it laiive-pusher sh

shell-workspace:
docker exec -it global-workspace sh

all-services-up:
cd services/frontend && uv run streamlit run main.py --server.address 0.0.0.0 --server.port 3000 & \
cd services/retriever && uv run uvicorn retriever.api:app --host 0.0.0.0 --port 8000 --reload

# --------------------SERVICE STARTERS INSIDE DEVCONTAINER --------------------------------------------------------------------------------------------------
start-frontend:
cd services/frontend && uv sync && uv run streamlit run main.py --server.address 0.0.0.0 --server.port 3000
shell-retriever:
docker exec -it laiive-retriever sh

# Update service starters:
start-retriever:
cd services/retriever && uv sync && uv run uvicorn src.api:app --host 0.0.0.0 --port 8000 --reload
cd services/retriever && uv sync && uv run uvicorn agent.api:app --host 0.0.0.0 --port 8000 --reload

start-pusher:
cd services/pusher && uv sync && uv run python main.py

start-scraper:
cd services/scraper && uv sync && cd event_scraper && uv run python main.py

start-parser:
cd services/parser && uv sync && uv run python parser.py
cd services/pusher && uv sync && uv run uvicorn agent.api:app --host 0.0.0.0 --port 8001 --reload
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" /><img width="90" height="90" alt="laiive1" src="https://github.com/user-attachments/assets/357725b4-4da2-4463-b9a5-896a29fc4b79" />
# Laiive.com
# Laiive.com

#### what is 🫦Laiive
laiive is what will save you from being at home scrolling for the rest of your life.
Expand Down
Loading