Skip to content

the backend service that does the escape room management

Notifications You must be signed in to change notification settings

gmackie/escape-room-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actix-todo

A port of the Rocket Todo example into actix-web. Except this uses PostgreSQL instead of SQLite.

Usage

Prerequisites

  • Rust >= 1.26
  • PostgreSQL >= 9.5

Change into the project sub-directory

All instructions assume you have changed into this folder:

cd examples/todo

Set up the database

Install the diesel command-line tool including the postgres feature:

cargo install diesel_cli --no-default-features --features postgres

Check the contents of the .env file. If your database requires a password, update DATABASE_URL to be of the form:

DATABASE_URL=postgres://username:password@localhost/actix_todo

Then to create and set-up the database run:

diesel database setup

Run the application

To run the application execute:

cargo run

Then to view it in your browser navigate to: http://localhost:8088/

About

the backend service that does the escape room management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published