Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jedediahfanuel/todo-actix
- Owner: jedediahfanuel
- Created: 2022-06-09T07:24:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-12T18:14:47.000Z (over 2 years ago)
- Last Synced: 2024-07-30T20:54:47.885Z (6 months ago)
- Topics: actix, diesel, rust, todo
- Language: Rust
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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_todosUse 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)