From b02d38f5b2fe789edae8ca1753c090846aa91b7a Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Thu, 27 Feb 2025 13:50:51 +0100 Subject: [PATCH] Rename project from "EventSpace" to "App" across files Updated project name references in configuration, scripts, and code. This includes changes to database URLs, Docker commands, environment variables, and displayed API titles. Ensures consistency with the new project name "App". --- .env.template | 4 ++-- Makefile | 2 +- backend/alembic.ini | 2 +- backend/app/config.py | 2 +- backend/app/core/database.py | 2 +- backend/app/main.py | 4 ++-- frontend/package.json | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.env.template b/.env.template index 91bc5d2..b033c5b 100644 --- a/.env.template +++ b/.env.template @@ -1,11 +1,11 @@ # Common settings -PROJECT_NAME=EventSpace +PROJECT_NAME=App VERSION=1.0.0 # Database settings POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres -POSTGRES_DB=eventspace +POSTGRES_DB=App POSTGRES_HOST=db POSTGRES_PORT=5432 DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} diff --git a/Makefile b/Makefile index bd3bc82..75a6ffa 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: dev prod down clean VERSION ?= latest -REGISTRY := gitea.pragmazest.com/cardosofelipe/eventspace +REGISTRY := gitea.pragmazest.com/cardosofelipe/app dev: diff --git a/backend/alembic.ini b/backend/alembic.ini index 8794f31..5006c25 100644 --- a/backend/alembic.ini +++ b/backend/alembic.ini @@ -1,6 +1,6 @@ [alembic] script_location = alembic -sqlalchemy.url = postgresql://postgres:postgres@db:5432/eventspace +sqlalchemy.url = postgresql://postgres:postgres@db:5432/app [loggers] keys = root,sqlalchemy,alembic diff --git a/backend/app/config.py b/backend/app/config.py index 36ceecd..b34ffde 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -3,7 +3,7 @@ from typing import Optional, List class Settings(BaseSettings): - PROJECT_NAME: Optional[str] = "EventSpace" + PROJECT_NAME: Optional[str] = "App" VERSION: Optional[str] = "1.0.0" API_V1_STR: Optional[str] = "/api/v1" diff --git a/backend/app/core/database.py b/backend/app/core/database.py index c557614..adfb7b9 100644 --- a/backend/app/core/database.py +++ b/backend/app/core/database.py @@ -3,7 +3,7 @@ from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os -SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres@db:5432/eventspace") +SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres@db:5432/app") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) diff --git a/backend/app/main.py b/backend/app/main.py index 044c3aa..f305a55 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -25,10 +25,10 @@ async def root(): return """ - EventSpace API + App API -

Welcome to EventSpace API

+

Welcome to app API

Explore the available endpoints and documentation:

OpenAPI Documentation diff --git a/frontend/package.json b/frontend/package.json index 91e81f8..d1b319b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,8 +7,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "docker:build": "docker build -t eventspace-frontend .", - "docker:run": "docker run -p 3000:3000 eventspace-frontend" + "docker:build": "docker build -t app-frontend .", + "docker:run": "docker run -p 3000:3000 app-frontend" }, "dependencies": {