Skip to content

Commit

Permalink
refactor!: rename project from 'showcase' to 'podium'
Browse files Browse the repository at this point in the history
  • Loading branch information
slashtechno committed Jan 23, 2025
1 parent c5af856 commit 1965893
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"request": "launch",
"module": "uvicorn",
"args": [
"showcase.main:app",
"podium.main:app",
"--reload"
],
"cwd": "${workspaceFolder}/backend",
Expand Down
2 changes: 1 addition & 1 deletion backend/Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: python -m uvicorn showcase.main:app --host 0.0.0.0 --port $PORT
web: python -m uvicorn podium.main:app --host 0.0.0.0 --port $PORT
1 change: 1 addition & 0 deletions backend/podium/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from podium.config import settings as settings
2 changes: 1 addition & 1 deletion backend/showcase/config.py → backend/podium/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dynaconf import Dynaconf, Validator

settings = Dynaconf(
envvar_prefix="SHOWCASE",
envvar_prefix="PODIUM",
load_dotenv=True,
settings_files=["settings.toml", ".secrets.toml"],
merge_enabled=True,
Expand Down
11 changes: 11 additions & 0 deletions backend/podium/db/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from podium.db.db import tables
from podium.db.event import ComplexEvent as ComplexEvent
from podium.db.event import EventCreationPayload as EventCreationPayload
from podium.db.event import UserEvents as UserEvents
from podium.db.event import Event as Event
from podium.db import user as user
from podium.db.project import ProjectCreationPayload as ProjectCreationPayload

events = tables["events"]
users = tables["users"]
projects = tables["projects"]
2 changes: 1 addition & 1 deletion backend/showcase/db/db.py → backend/podium/db/db.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pyairtable import Api, Table

# from pyairtable.formulas import match
from showcase import settings
from podium import settings


tables: dict[str, Table] = {}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/showcase/db/user.py → backend/podium/db/user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional
from pydantic import BaseModel, EmailStr

from showcase.db import tables
from podium.db import tables
from pyairtable.formulas import match


Expand Down
2 changes: 1 addition & 1 deletion backend/showcase/main.py → backend/podium/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
routers_dir = Path(__file__).parent / "routers"
for path in routers_dir.glob("*.py"):
if path.name != "__init__.py":
module_name = f"showcase.routers.{path.stem}"
module_name = f"podium.routers.{path.stem}"
module = importlib.import_module(module_name)
# If the module has a router attribute, include it in the app
if hasattr(module, "router"):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# from email.mime.text import MIMEText
from typing import Annotated

from showcase import db, settings
from podium import db, settings

from fastapi import APIRouter, HTTPException, Query, status, Depends
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
Expand Down Expand Up @@ -62,8 +62,8 @@ async def send_magic_link(email: str):
message = Mail(
from_email=settings.sendgrid_from_email,
to_emails=email,
subject="Magic link for Showcase",
html_content=f"Click <a href='{magic_link}'>here</a> to log in to Showcase",
subject="Magic link for Podium",
html_content=f"Click <a href='{magic_link}'>here</a> to log in to Podium",
)

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

from requests import HTTPError

from showcase.routers.auth import get_current_user
from showcase import db
from showcase.db import EventCreationPayload, ComplexEvent, UserEvents, Event
from showcase.db.project import Project
from podium.routers.auth import get_current_user
from podium import db
from podium.db import EventCreationPayload, ComplexEvent, UserEvents, Event
from podium.db.project import Project

router = APIRouter(prefix="/events", tags=["events"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Annotated
from requests import HTTPError
from showcase import db
from podium import db
from fastapi import APIRouter, Depends, HTTPException, Path
from pyairtable.formulas import EQ, RECORD_ID
from showcase.routers.auth import get_current_user
from showcase.db.project import Project
from podium.routers.auth import get_current_user
from podium.db.project import Project

router = APIRouter(prefix="/projects", tags=["projects"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Annotated
from pydantic import BaseModel, EmailStr
from showcase import db
from podium import db
from fastapi import APIRouter, Query
from showcase.db.user import UserSignupPayload
from podium.db.user import UserSignupPayload

router = APIRouter(prefix="/users", tags=["users"])

Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "showcase"
name = "podium"
version = "0.1.0"
description = ""
authors = ["slashtechno <[email protected]>"]
Expand Down
1 change: 0 additions & 1 deletion backend/settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ airtable_base_id = "appmCFCuFmxkvO1zc"
airtable_events_table_id = "tblf7gxCB41f6PaPf"
airtable_users_table_id = "tblwoiggOeX0s6nyG"
airtable_projects_table_id = "tbl0mqJURRV5VpkIj"
# production_url = "https://showcase.hackclub.com"
production_url = "https://hcpodium.vercel.app"
1 change: 0 additions & 1 deletion backend/showcase/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions backend/showcase/db/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "showcase",
"name": "podium",
"version": "0.0.1",
"type": "module",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@

<svelte:head>
{#if page.data.title}
<title>{page.data.title} | Showcase</title>
<title>{page.data.title} | Podium</title>
{:else}
<title>Showcase</title>
<title>Podium</title>
{/if}
{#if page.data.meta}
{#each page.data.meta as { name, content }}
<meta {name} {content} />
{/each}
{:else}
<meta name="description" content="Showcase" />
<meta name="description" content="Podium" />
{/if}
</svelte:head>

<nav class="p-4 text-center bg-neutral">
<a href="/" class="text-2xl font-bold text-neutral-content">Showcase</a>
<a href="/" class="text-2xl font-bold text-neutral-content">Podium</a>
</nav>
<!-- Check for auth on all pages -->
<!-- <CheckAuth /> -->
Expand Down

0 comments on commit 1965893

Please sign in to comment.