Skip to content

Commit 6e7a3d1

Browse files
committed
refactor(fix gitignore)
1 parent 9946116 commit 6e7a3d1

15 files changed

+5677
-3714
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

-15
This file was deleted.

README.md

+18-27
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
1-
# WORKING ON A BETTER README FILE, JUST FINISHED
1+
# todo
22

3-
Note: This is a work in progress. 🏗️🚧
3+
Install `sqlx-cli` using `cargo install sqlx-cli`, then run following:
44

5-
# Todo-RustSvelte
6-
crazy fkng god mode
5+
```
6+
git clone https://github.com/knarkzel/todo
7+
cd todo/
8+
```
79

8-
first time using sveltekit but im using a template and a tailwind template soo YOLO . . . yes im from the 2000
10+
## backend
911

12+
```
13+
cd backend/
14+
sqlx database setup
15+
cargo run
16+
```
1017

11-
Rust:
12-
[dependencies]
13-
axum = { version = "0.6.20", features = ["form"] }
14-
axum-error = "0.2.0"
15-
dotenv = "0.15.0"
16-
serde = { version = "1.0.188", features = ["derive"] }
17-
sqlx = { version = "0.7.2", features = ["runtime-tokio", "tls-rustls", "sqlite"] }
18-
tokio = { version = "1.32.0", features = ["full"] }
19-
tower-http = { version = "0.4.4", features = ["cors"] }
20-
Doing the first migration with sqlx and i love this message that showed to me
21-
"
22-
Congratulations on creating your first migration!
18+
## frontend
2319

24-
Did you know you can embed your migrations in your application binary?
25-
On startup, after creating your database connection or pool, add:
26-
27-
sqlx::migrate!().run(<&your_pool OR &mut your_connection>).await?;
28-
29-
Note that the compiler won't pick up new migrations if no Rust source files have changed.
30-
You can create a Cargo build script to work around this with `sqlx migrate build-script`.
31-
32-
See: https://docs.rs/sqlx/0.5/sqlx/macro.migrate.html
33-
"
20+
```
21+
cd frontend/
22+
npm install
23+
npm run dev
24+
```

backend/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DATABASE_URL=sqlite:database.sqlite
1+
DATABASE_URL=sqlite:database.sqlite

backend/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
database.sqlite*

0 commit comments

Comments
 (0)