1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/database_interactions/sqlx_todo/README.md
2021-03-03 23:37:17 +09:00

699 B

actix-sqlx-todo

Example Todo application using Actix-web and SQLx with sqlite

Usage

Prerequisites

  • Rust
  • SQLite

Change into the project sub-directory

All instructions assume you have changed into this folder:

cd examples/sqlx_todo

Set up the database

  • Create new database using schema.sql
  • Copy .env-example into .env and adjust DATABASE_URL to match your SQLite address, username and password

Run the application

To run the application execute:

cargo run

By default application will be available on http://localhost:5000. If you wish to change address or port you can do it inside .env file