-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
### Home Inventory API | ||
Built with actix | ||
|
||
#### Development | ||
## Development | ||
|
||
Setup the database and migration | ||
#### Compile the current package | ||
- ``cargo build`` | ||
|
||
``diesel setup`` | ||
#### Setup the database and migration | ||
|
||
- ``diesel setup`` | ||
- ``diesel migration run`` | ||
|
||
#### Run the App | ||
|
||
- ``cargo run`` | ||
|
||
|
||
|
||
## How to's | ||
|
||
**Create new table** | ||
|
||
``diesel migration generate create_homes`` | ||
|
||
Run Migration | ||
**Run Migration** | ||
|
||
``diesel migration run`` | ||
|
||
Undo Migration | ||
**Undo Migration** | ||
|
||
``diesel migration redo`` | ||
|
||
Run Cargo | ||
|
||
``cargo run`` |