Skip to content

Vite/FastAPI starter code template with CI and AGENTS.MD file for reliable agentic development. Designed for OpenAI Codex, Claude Code, and Devin.

Notifications You must be signed in to change notification settings

gshklovs/react-codex-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite: React + FastAPI + GitHub Actions template for agents

This project provides a minimal FastAPI backend with a Vite + React frontend. It implemenets a GitHub Actions workflow for running tests on every push and pull request using pytest and vitest. AGENTS.MD is used for improved PRs from OpenAI Codex.

Requirements

  • Python 3.10+
  • Node.js 18+

Setup

All commands should be run from the frontend directory.

  1. Clone the repository:

    git clone https://github.com/gshklovs/react-codex-starter.git
  2. Navigate to the frontend directory:

    cd frontend
  3. Install frontend dependencies:

    npm install
  4. Install backend dependencies:

    npm run install:backend

Development

Start both frontend and backend servers with a single command:

cd frontend
npm run dev:all

Or run them separately:

Frontend:

cd frontend
npm run dev

Backend:

cd backend
uvicorn app.main:app --reload

The frontend will be available at http://localhost:5173 The backend API will be available at http://localhost:8000

Tests

Backend

cd backend
pytest

Frontend

cd frontend
npm test

The backend tests verify the /api/hello route. The frontend tests use Vitest and React Testing Library to check component rendering and behavior.

Continuous Integration

This repository uses GitHub Actions to run tests automatically on every push and pull request. The workflow installs dependencies and executes the same test commands described above.

To run the tests locally:

pip install -r backend/requirements.txt
npm install --prefix frontend
cd backend && pytest
cd frontend && npm test

If any step fails, the workflow marks the commit as failed on GitHub.

About

Vite/FastAPI starter code template with CI and AGENTS.MD file for reliable agentic development. Designed for OpenAI Codex, Claude Code, and Devin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published