Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 2.08 KB

readme.md

File metadata and controls

49 lines (38 loc) · 2.08 KB

Fullstack web application with Actix-Web

We are going to create a fullstack web application with Rust. We are going to use the following tools/frameworks,

We will also use redis, Docker/Docker Compose and also try to incorporate RabbitMQ.

Let's get started.

Table of contents

  1. Initial Project Setup
  2. Logging
  3. Reading application defaults from .env
  4. Making the application Modular
  5. Returning JSON response
  6. Updating the logger
  7. Adding a Database to Persist Data
  8. Adding Sea-ORM
  9. Sea-ORM: Creating Models and Entities
  10. Adding missing field to a Model
  11. Updating the entity
  12. Adding the users module
  13. Adding Admin fields to User
  14. The User API

Running the server

To run the server, rename the example dot.env to .env and set the expected values to your suitable default. Here is an example for running locally,

# application
HOST=127.0.0.1
PORT=8080

# database
DATABASE_URL=postgres://postgres:password@localhost/actix-fullstack

From the terminal, navigate to application directory. From inside the directory, hit cargo run. Your server should be up and running and should be available to you at http://localhost:8080 or http://127.0.0.1