EricGram is a React + Vite frontend backed by a C++ HTTP server. This repo is configured to deploy as a single Dockerized web service so the app can be reached from one public URL.
Backend:
cmake -S . -B build
cmake --build build
./build/my_appFrontend:
cd frontend
npm install
npm run devThis repo includes:
Dockerfilefor a production buildrender.yamlfor one-click Render setup- backend static-file serving from
frontend/distso frontend and API share one origin in production
- Push this repo to GitHub.
- In Render, create a new Blueprint or Web Service from the repo.
- Render will detect
render.yamland the includedDockerfile. - After the deploy finishes, Render will assign a public URL such as:
https://ericgram.onrender.com
Recommended production env vars:
FRONTEND_BASE_URL=https://<your-render-domain>IG_TOKEN_ENC_KEYis generated automatically byrender.yaml
Optional Instagram sync env vars:
IG_APP_IDIG_APP_SECRETIG_REDIRECT_URIIG_SCOPEIG_GRAPH_VERSION
The backend is in-memory. Uploaded posts, messages, and other runtime-created data do not survive server restarts unless you explicitly seed them again.