Backend initial
This commit is contained in:
commit
14af6e71c0
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/target
|
||||||
|
.env
|
||||||
|
/dist
|
||||||
|
dist.zip
|
2634
Cargo.lock
generated
Normal file
2634
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
27
Cargo.toml
Normal file
27
Cargo.toml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[package]
|
||||||
|
name = "realtor-lp-generator-backend"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
dotenvy = "0.15.6"
|
||||||
|
dotenvy_macro = "0.15.1"
|
||||||
|
tokio = {version = "1.20.1", features = ["full"]}
|
||||||
|
chrono = "0.4.23"
|
||||||
|
chrono-tz = "0.8"
|
||||||
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
serde_json = "1.0.88"
|
||||||
|
sqlx = { version = "0.6.0", features = [ "runtime-tokio-rustls", "postgres", "chrono", "uuid", "offline" ] }
|
||||||
|
actix-web = {version = "4.1.0"}
|
||||||
|
actix-cors = "0.6.2"
|
||||||
|
actix-multipart = "0.6.0"
|
||||||
|
actix-web-lab = { version = "0.19.1", features = [ "spa" ]}
|
||||||
|
uuid = { version = "1.3.0", features = ["v4", "fast-rng", "macro-diagnostics"] }
|
||||||
|
rand = "0.8.5"
|
||||||
|
|
||||||
|
actix-web-utils = { git = "https://git.franklinblanco.dev/franklinblanco/actix-web-utils.git" }
|
||||||
|
err = { git = "https://git.franklinblanco.dev/franklinblanco/err.git" }
|
||||||
|
|
||||||
|
realtor-lp-types = { path = "../realtor-lp-types" }
|
8
Readme.md
Normal file
8
Readme.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Realtor Landing Page Generator Backend
|
||||||
|
by Franklin Blanco
|
||||||
|
|
||||||
|
This backend serves the frontend with all the properties. It is responsable of serving all the contents of the agents.
|
||||||
|
|
||||||
|
## How does it work?
|
||||||
|
|
||||||
|
Realtor gets created -> Project/Properties get created/imported -> They get ordered, edited, etc... -> People view the properties/projects
|
3
migrations/1_realtor.sql
Normal file
3
migrations/1_realtor.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS "realtor" (
|
||||||
|
id UUID PRIMARY KEY,
|
||||||
|
);
|
1
migrations/2_property.sql
Normal file
1
migrations/2_property.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
-- Add migration script here
|
0
migrations/3_view.sql
Normal file
0
migrations/3_view.sql
Normal file
0
src/dao/mod.rs
Normal file
0
src/dao/mod.rs
Normal file
10
src/main.rs
Normal file
10
src/main.rs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
mod dao;
|
||||||
|
mod routes;
|
||||||
|
mod services;
|
||||||
|
mod utils;
|
||||||
|
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
|
||||||
|
}
|
0
src/routes/main_router.rs
Normal file
0
src/routes/main_router.rs
Normal file
0
src/routes/mod.rs
Normal file
0
src/routes/mod.rs
Normal file
0
src/services/mod.rs
Normal file
0
src/services/mod.rs
Normal file
0
src/utils/mod.rs
Normal file
0
src/utils/mod.rs
Normal file
Loading…
Reference in New Issue
Block a user