fairingrey/actix-realworld-example-app
fairingrey/actix-realworld-example-app has 536 GitHub stars and 73 forks. GitHot measured +1 in 7 days. Last checked 2026-11-10 00:28 UTC. Last push 2023-06-14.
[UNMAINTAINED] Implementation of the RealWorld backend API spec in Actix, Rust's powerful actor system and most fun web framework.
Measured star growth
- in 24h
- Update delayed
- in 7 days
- +1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalActix codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
❗ (2021/05/13) This codebase is currently unmaintained, and I am not interested in maintaining it. This relies on an old version of Actix -- developers who want to learn Actix should probably read the latest docs at the Actix website.
This codebase was created to demonstrate a fully fledged fullstack application built with Actix including CRUD operations, authentication, routing, pagination, and more. CORS, however, is not yet added.
This implementation is not reviewed. See the Contributing section below.
For more information on how this works with other frontends, head over to the RealWorld repo.
How it works
This is an application written in Rust that utilizes Actix for developing the backend web service that powers the RealWorld application.
You can view a full list of crates being used in Cargo.toml, but here are some of the main ones of note:
- Actix - a powerful Actor framework
- Chrono - a Date and Time library for Rust
- Failure - a system for creating and managing errors in Rust
- Futures - Zero-cost Futures in Rust
- jsonwebtoken - Create and parses JWT (JSON Web Tokens)
- libreauth - a collection of tools for user authentication
- Serde - a framework for serializing and deserializing Rust data structures efficiently and generically
- Uuid - Generate and parse UUIDs
- validator - Simple validation for Rust structs
Getting started
- Install Rust
- Install PostgreSQL if you don't have it already.
- Install the Diesel CLI with the
postgresfeature enabled. - Clone this repo to a folder on your computer.
- Copy (
cp) .env.example to.envwithin this directory, and change the environment variables accordingly to your system. - Setup your database by running
diesel database setup. Make sure it has completed successfully. - Build this project with
cargo build. You are welcome to compile with--releaseif you'd like. - Run with
cargo run. - The API URL will be whatever the
BIND_ADDRESSvalue is in.envwith the/apipath included e.g.https://127.0.0.1:3000/api. Set it as such in your REST client (Postman, Insomnia, etc.), import the postman collection and start testing it out!
Contributing
Feel free to take a look at the current issues in this repo for anything that currently needs to be worked on.
You are also welcome to open a new issue if you see something is missing or could be improved upon.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,965 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,612 starsreact/react
The library for web and native user interfaces.
252,516 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,622 stars