Backend initial

This commit is contained in:
Franklin 2023-05-03 12:03:04 -04:00
commit 14af6e71c0
13 changed files with 2687 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/target
.env
/dist
dist.zip

2634
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

27
Cargo.toml Normal file
View 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
View 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
View File

@ -0,0 +1,3 @@
CREATE TABLE IF NOT EXISTS "realtor" (
id UUID PRIMARY KEY,
);

View File

@ -0,0 +1 @@
-- Add migration script here

0
migrations/3_view.sql Normal file
View File

0
src/dao/mod.rs Normal file
View File

10
src/main.rs Normal file
View File

@ -0,0 +1,10 @@
mod dao;
mod routes;
mod services;
mod utils;
#[tokio::main]
async fn main() {
}

View File

0
src/routes/mod.rs Normal file
View File

0
src/services/mod.rs Normal file
View File

0
src/utils/mod.rs Normal file
View File