Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Preview Application #7

Open
Angitha101 opened this issue Jan 17, 2025 · 4 comments
Open

Cant Preview Application #7

Angitha101 opened this issue Jan 17, 2025 · 4 comments

Comments

@Angitha101
Copy link

im not able to preview the app when im using it locally. Could you explain in detail what are the mandatory configurations needed for previewing it and the steps to do so? I only hae openai key, so im using openai everywhere instead of anthropic

@sshh12
Copy link
Owner

sshh12 commented Jan 18, 2025

This file has all the potential config fields: https://raw.githubusercontent.com/sshh12/prompt-stack/refs/heads/main/backend/config.py

I think the main one you are missing is

MODAL_TOKEN_ID = os.getenv("MODAL_TOKEN_ID")
MODAL_TOKEN_SECRET = os.getenv("MODAL_TOKEN_SECRET")

You have to create an account on modal.com (should be free) and get tokens https://modal.com/settings/sshh12/tokens

@sshh12
Copy link
Owner

sshh12 commented Jan 18, 2025

Feel free to share any error logs you see when you run python main.py

@Angitha101
Copy link
Author

hi, i wanted to know, if i had to add another tech stack like fastapi, what are the steps i need to take? I wanted to what do we need to give for "_SETUP_COMMON_CMD" in that case? also particularly what is the basis for creation of the packages that need to be added to "from_registry"?

@sshh12
Copy link
Owner

sshh12 commented Jan 20, 2025

Hey! you really just have to define an image + boilerplate like these: https://github.com/sshh12/spark-stack/tree/main/images

Happy to help add one for fastapi -- the main blocker rn is that you need a way to preview (with auto reload) both the backend and frontend over the same port. This might require also running nginx in the same container so it gets a bit more complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants