μΈμ΄ μ ν / Language Selection:
I developed this project using the GPU cloud service(paperspace)
please make the .env file in the root folder
PROJECT_NAME="ChatGPT Clone Project"
STACK_NAME="ChatGPT-Clone-Project"
DOMAIN=localhost
# backend url
VITE_SERVER_URL=http://127.0.0.1:8000
# frontend url
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,http://127.0.0.1:5173,https://localhost,https://localhost:5173,https://127.0.0.1:5173"
DOMAIN_PORT="5173"
USE_HASH_ROUTER = "True"
ACCESS_TOKEN_EXPIRE_MINUTES = 60
# secret key and algorithm for auth
SECRET_KEY =
ALGORITHM =
SMTP_HOST = "smtp.gmail.com"
SMTP_PORT = 587
SMTP_USERNAME =
SMTP_PASSWORD =
EMAILS_FROM_EMAIL = "[email protected]"
EMAILS_FROM_NAME = "ChatGPT Clone Project Information"
# Postgres
POSTGRES_SERVER=localhost
POSTGRES_PORT=5432
POSTGRES_DB=app
POSTGRES_USER=postgres
POSTGRES_PASSWORD=changethis
# langsmith
LANGCHAIN_TRACING_V2 = 'true'
LANGCHAIN_API_KEY =
sudo docker-compose up
it will make the containeres
for example)
[+] Building 0.0s (0/0) docker:default
[+] Running 5/0
β Container chatgpt-clone-proxy-1 Created 0.0s
β Container chatgpt-clone-db-1 Created 0.0s
β Container backend Created 0.0s
β Container frontend Created 0.0s
β Container chatgpt-clone-adminer-1 Created 0.0s
Attaching to backend, chatgpt-clone-adminer-1, chatgpt-clone-db-1, chatgpt-clone-proxy-1, frontend
Backend docs: backend/readme.md
General development docs: development.md.
This includes using Docker Compose, pre-commit, .env
configurations, etc.
This repository is built upon full-stack-fastapi-template. If you want to use FastAPI, that will be good reference or starting point.
@online{full-stack-fastapi-template,
author = {fastapi},
title = {full-stack-fastapi-template},
url = {https://github.com/fastapi/full-stack-fastapi-template},
year = {2024},
}