Skip to content

A personalized Rust backend web server for quick releases

License

Notifications You must be signed in to change notification settings

shivam-g10/rust-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A personalized Rust backend web server for quick releases

Setup Dev

  1. sh scripts/set_up_infra.sh
  2. Create a .env file
DATABASE_URL=postgres://postgres:postgres@localhost:5432/kodingkorp
AUTO_MIGRATE=TRUE
PORT=3000
HOST=0.0.0.0
IAM_JWT_SECRET=TEST_SECRET
  1. cargo install cargo-watch
  2. cargo watch -x run

Tests

cargo test

Structure

.
├── dev_infra # set up dev infra using docker
├── migration # holds database migrations
├── scripts # holds shell scripts
├── src
│   ├── app # All application logic
│   │   ├── capabilities # capabilities built into application
│   │   │   ├── common # common capabilities need across services
│   │   │   │   ├── config
│   │   │   │   ├── global_model
│   │   │   ├── iam # Identity Access Management service
│   │   │   │   ├── controllers # holds all routes maintained by IAM
│   │   │   │   │   ├── authentication # Authentication routes
│   │   │   │   │   ├── users # user level protected routes
│   │   │   │   ├── entities # database entities managed by IAM
│   │   │   │   ├── enums 
│   │   │   │   ├── helpers # general utility methods
│   │   │   │   ├── models # IAM specific models
│   │   │   │   ├── services
│   │   │   │   │   ├── auth 
│   │   │   │   │   ├── iam # main service exposed by IAM
│   │   │   │   │   ├── users
│   │   │   │   ├── constants.rs # Constants of IAM
│   │   ├── routes # General routes
│   │   ├── bootstrap.rs # Bootstrap the poem App
│   ├── lib.rs 
│   └── main.rs # Entry point
├── .env
├── Cargo.lock
├── Cargo.toml
├── LICENSE
└── README.md

About

A personalized Rust backend web server for quick releases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published