General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
119
A production-ready fullstack application template with Rust backend and React frontend.
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
A production-ready fullstack application template with Rust backend and React frontend.
.
├── crates/ # Rust workspace
│ ├── app/ # Main application binary
│ ├── auth/ # Authentication (reusable)
│ ├── common/ # Shared types (reusable)
│ ├── config/ # Configuration (reusable)
│ ├── database/ # SeaORM entities & repos (reusable)
│ ├── graphql/ # GraphQL schema & resolvers
│ └── telemetry/ # Logging & tracing (reusable)
├── web/ # React frontend
│ ├── src/
│ │ ├── components/
│ │ ├── generated/ # GraphQL codegen output
│ │ ├── hooks/
│ │ ├── lib/ # Apollo, Auth setup
│ │ └── pages/
│ └── ...
├── config/ # Backend configuration
├── justfile # Task runner
├── docker-compose.yml
└── .gitlab-ci.yml
# Install just (if not installed)
cargo install just
# Start development services
just dev-services
# Install dependencies
just install
# Run migrations
just db-migrate
# Start development (backend + frontend)
just dev
just # List all commands
just dev # Start full dev environment
just test # Run all tests
just lint # Run all linters
just build # Build everything
just ci # Run CI checks locally
Configuration is loaded from (in order):
config/default.tomlconfig/{environment}.tomlconfig/local.toml (gitignored)APP__ prefix# Backend
APP_ENVIRONMENT=development
APP__DATABASE__URL=postgres://postgres:postgres@localhost:5432/myapp
APP__AUTH__KEYCLOAK_URL=http://localhost:8180
APP__AUTH__REALM=master
APP__AUTH__CLIENT_ID=my-app
# Frontend (in web/.env)
VITE_GRAPHQL_URL=http://localhost:8080/graphql
VITE_AUTH_URL=http://localhost:8180
VITE_AUTH_REALM=master
VITE_AUTH_CLIENT_ID=my-app-frontend
just backend-watch # Watch mode with auto-reload
just backend-run # Run once
just frontend-dev # Vite dev server on :3000
just gql-codegen # Generate TypeScript types
just db-migrate # Run migrations
just db-rollback # Rollback last migration
just db-reset # Drop & recreate database
just test # All tests
just test-backend # Backend only
just test-frontend # Frontend only
just test-backend-coverage # With coverage
GitLab CI pipeline includes:
MIT