Skip to content

Add Flask backend and React frontend skeleton with Render deployment config#6

Open
echska wants to merge 2 commits into
mainfrom
codex/create-empty-project-structure-rrzn0e
Open

Add Flask backend and React frontend skeleton with Render deployment config#6
echska wants to merge 2 commits into
mainfrom
codex/create-empty-project-structure-rrzn0e

Conversation

@echska
Copy link
Copy Markdown
Owner

@echska echska commented May 9, 2026

Motivation

  • Provide a minimal backend API and file-based storage to collect and serve device data for the parental control dashboard.
  • Deliver a React-based frontend skeleton with UI components and a polling dashboard to visualize calls, messages, locations and notifications.
  • Prepare deployment on Render with a render.yaml and a Dockerfile for the backend and static configuration for the frontend.

Description

  • Add a Flask backend in parental-control-system/backend providing GET /health, POST /api/v1/sync, and GET /api/v1/data/<category> with simple JSON file storage in vault_*.json files and helper functions read_items, write_items, and save_data.
  • Add a Dockerfile and requirements.txt for the backend and configure Gunicorn as the production entrypoint.
  • Add a React frontend in parental-control-system/frontend including package.json, tailwind.config.js, services/api.js for fetchCategory and syncCategory, a Dashboard page, and multiple display components (CallsTable, MessagesTable, LocationsMap, LocationsTimeline, AlertsPanel, WhatsAppPanel, InstagramPanel, RouterMonitor) to render fetched data.
  • Add render.yaml to define two Render services (parental-control-backend using Docker and parental-control-frontend as a static site) and enable pull request previews.

Testing

  • No automated tests were added or executed as part of this change.
  • Render preview configuration is included via render.yaml to enable automatic deployment previews for the services.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef3388ab48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread parental-control-system/frontend/package.json
Comment thread render.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant