Skip to content

ajaythxkur/rust-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Web Server

An example REST API built with Rust, Actix Web, and MongoDB.

This project demonstrates how to:

  • Build REST APIs using Actix Web
  • Connect to MongoDB from Rust
  • Perform CRUD operations with a NoSQL database
  • Structure a Rust backend application using services and models
  • Serialize and deserialize JSON using Serde

Features

  • Create owners
  • Create dogs associated with owners
  • Create bookings
  • Cancel bookings
  • Retrieve all bookings
  • Store data in MongoDB

Environment Variables

Create a .env file:

MONGODB_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/

Run the Application

cargo run

The server starts on:

http://localhost:8585

About

Actix web server with mongodb setup example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors