Skip to content

Code-Tap/actix-todoapi

Repository files navigation

##Todo API

1st Job, rename the dotenv file

mv dotenv .env

Build the release api

cargo check && cargo build --release

Finally bring up the API

docker-compose up -d

Future update: Move the build process into a disposible docker layer reducing the whole project lauch into a single docker-compose command.

Test the api:

curl http://localhost:8080/
curl http://localhost:8080/todos/1/items

If you do this twice, you will see that it succeeds first time, and fails the 2nd as it is already present.

curl -X PUT http://localhost:8080/todos/2/3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published