A modern, type-safe, and full-stack boilerplate for building robust web applications.
Getting Started ⢠Features ⢠Architecture ⢠Development ⢠Contributing
https://github.com/user-attachments/assets/0ecdf162-2d72-4bd1-a9d3-8fb69424a974
š¦ Rust Backend
š³ Elm Frontend
šØ Modern UI
š Developer Experience
Make sure you have the following installed:
Clone the repository:
git clone <repository-url>
cd rust-graphql-elm-tailwind-boilerplate
Install dependencies:
# Install dependencies (this will also install Elm frontend dependencies via postinstall)
npm install
Set up your environment:
cp .env.example .env
# Edit .env with your JWT_SECRET and ADMIN_PASSWORD
Start the development servers:
npm run dev
Your application will be available at:
.
āāā src/
ā āāā main.rs # Rust backend entry point
ā āāā graphql/ # GraphQL schema and resolvers
ā ā āāā schema.rs # GraphQL schema definition
ā ā āāā resolvers/ # Query and mutation resolvers
ā āāā db/ # In-memory database implementation
ā āāā elm/ # Elm frontend application
ā āāā src/ # Elm source code
ā ā āāā Main.elm # Application entry point
ā ā āāā Api/ # Generated GraphQL types
ā āāā styles/ # Tailwind CSS styles
āāā Cargo.toml # Rust dependencies
āāā package.json # Node.js dependencies
npm run dev
- Start development serversnpm run build
- Build for productionnpm run test
- Run testsnpm run generate
- Generate GraphQL types for ElmThe GraphQL Playground is available at http://localhost:8080/playground during development. Use it to:
npm run generate
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.