MCPcopy Index your code
hub / github.com/TatriX/realworld-rust-rocket

github.com/TatriX/realworld-rust-rocket @rocket-v0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release rocket-v0.4 ↗ · + Follow
133 symbols 346 edges 25 files 32 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RealWorld Example App

Build Status Crates.io codecov

RealWorld

This codebase was created to demonstrate a fully fledged fullstack application built with Rocket including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Rocket community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

CHANGELOG

Please see the CHANGELOG for a release history.

Getting started

Install nightly

# install rustup
curl https://sh.rustup.rs -sSf | sh

rustup install nightly

# start postgresql and seed the database
psql -f init.sql
cargo install diesel_cli --no-default-features --features "postgres"
diesel migration run

cargo run

Testing

Simply run:

cargo test

You can also check postman/newman. See /tests directory.

How it works

diesel cli uses .env file. Rocket sets database configuration from .env file. Checkout Rocket's amazing guide

Features

By default random suffixes feature is enabled, so one could easily create multiple articles with the same title. To disable it:

cargo run --no-default-features

TODO

  1. Bettter error handling

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 84
Class 30
Method 17
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/db/articles.rs18 symbols
src/routes/articles.rs16 symbols
tests/articles.rs14 symbols
src/routes/users.rs9 symbols
tests/users.rs8 symbols
src/errors.rs8 symbols
src/db/users.rs8 symbols
tests/common.rs6 symbols
src/db/mod.rs6 symbols
src/auth.rs6 symbols
src/models/user.rs5 symbols
src/routes/profiles.rs4 symbols

For agents

$ claude mcp add realworld-rust-rocket \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page