KO
|
EN
gitlite — search
Search
#javascript
#python
#docker
#hacktoberfest
#ruby
#android
#kotlin
#wordpress
#ios
#css
#html
#api
axum_jwt_example
★ 86
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
stencil
:
Customizable transactional and marketing email templates
Text-Summarization
:
Abstractive and Extractive Text summarization using Transformers.
BMBC
:
BMBC: Bilateral Motion Estimation with Bilateral Cost Volume for Video Interpolation, ECCV 2020
AODA
:
Official implementation of "Adversarial Open Domain Adaptation for Sketch-to-Photo Synthesis"(WACV 2022/CVPRW 2021)
meshsync
:
MeshSync one of a family of custom controllers within Meshery Operator.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
axum_jwt_example
?
Download (.md)
# Axum JWT example This repository provides an example of: - Axum REST API - Axum GraphQL API - Axum CORS config - Error handling - JWT authentication - Interaction with the database - Password encryption - Payload validation ## Required - Rust - Docker and docker-compose or Postgresql server ## Recommended - [Diesel CLI](https://github.com/diesel-rs/diesel/tree/master/diesel_cli) (for database migrations) ## Usage - cp .env.example .env - docker-compose up -d - diesel migration run - cargo run --release ## Api - POST `/register` - required fields: `name, email, password`, returns bearer token - POST `/login` - required fields: `email, password`, returns bearer token - GET `/authorize` - returns user - GET `/graphql` - graphql playground - POST `/graphql` - graphql endpoint