sinfzx / axum_posts

Rest API built with Axum for creating posts and reviews. It contains Authentication using JWT tokens, middleware and stores data using a mongo database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post Review Axum API

Axum is a web application framework that focuses on ergonomics and modularity for Rust. This project was made to try out Axum in Rust to make a functional restful api.

The API lets you do CRUD actions on Posts and Reviews. The API contains a generic controller, connection to mongoDB, authentication via jsonwebtokens and encryption for passwords.

Goals for this project

  • Connect to a database
  • CRUD requests
  • several models
  • encrypt passwords of users
  • use jsonwebtokens for requests
  • middleware
  • a model with complex datatypes (time, lists e.g.)
  • only objects can be deleted/edited by the author

About

Rest API built with Axum for creating posts and reviews. It contains Authentication using JWT tokens, middleware and stores data using a mongo database.

License:MIT License


Languages

Language:Rust 99.8%Language:Dockerfile 0.2%