Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jedediahfanuel/todo-actix

Todo apps using actix framework
https://github.com/jedediahfanuel/todo-actix

actix diesel rust todo

Last synced: 4 months ago
JSON representation

Todo apps using actix framework

Awesome Lists containing this project

README

        

# todo-actix

Todo apps using actix framework

# Setup

## Diesel ORM
https://diesel.rs/

First of all, install the diesel cli
```
cargo install diesel_cli
```

Then, set your postgresql in .env file
```
DATABASE_URL=postgres://username:password@localhost/todo_list
```


Then run this command
```
diesel setup
```


To add a table migrations, use this command. (For instance we use todos table)
```
diesel migration generate create_todos
```


Now look for `up.sql` & `down.sql` in migration directory.
The ones with create_todos

Use up.sql for migrations, and use down,sql for redo-ing.

Then apply migration with
```
diesel migration run
```

Or redo-ing with
```
diesel migration redo
```



![Jeddi's Profile Views](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FJeddi212&countColor=%23fce775&style=flat-square)