Skip to content

Latest commit

 

History

History
 
 

todo-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

actix-sqlx-todo

Example Todo API using Actix-web and SQLx with posgresql

Usage

Prerequisites

  • Rust
  • PostgreSQL

Change into the project sub-directory

All instructions assume you have changed into this folder:

cd examples/postgres/todo-api

Set up the database

  • Create new database using schema.sql
  • Copy .env-example into .env and adjust DATABASE_URL to match your PostgreSQL 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.