A simple evaluation results viewer with a React frontend and Express backend.
mini-foo/
├── app/ # React frontend application
│ ├── public/ # Static files
│ ├── src/ # Source files
│ └── package.json # Frontend dependencies
└── server/ # Express backend application
├── src/ # Source files
├── bootstrap.ts # Database initialization
└── package.json # Backend dependencies
- Install dependencies:
npm install
- Start the server:
npm start
The server will run on http://localhost:8085
- Navigate to the app directory:
cd app
- Install dependencies:
npm install
- Start the development server:
npm run dev
The application will open in your browser at http://localhost:3007
GET /evals
- Retrieve all evaluations with their results
- React
- TypeScript
- Vite
- Vitest
- Testing Library
- Express
- better-sqlite3
- TypeScript
- Node.js
From the root directory:
npm start
- Start both frontend and backend serversnpm test
- Run tests for all workspacesnpm run lint
- Run ESLint on all filesnpm run format
- Format code with Prettier
From the app directory:
npm run dev
- Start the Vite development servernpm run build
- Build the app for productionnpm test
- Run tests with Vitestnpm run preview
- Preview the production build
- Frontend code is in
app/src/
- Backend code is in
server/src/
- Database schema and sample data are in
server/bootstrap.ts
- API models are in
server/src/models/
- The frontend runs on port 3007 to avoid conflicts with other services
- The backend uses SQLite for data storage
- CORS is enabled on the backend to allow frontend requests