Add initial database schema and references
Some checks are pending
Build Crate / build (push) Waiting to run

Also look into users a bit
This commit is contained in:
2024-08-14 01:20:48 -04:00
parent 01eaf059dd
commit 5cb67786bf
19 changed files with 505 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# Installing requirements
## 1. Install rust:
### Windows:
### Windows:
Download installer from https://www.rust-lang.org/tools/install
@@ -11,7 +11,7 @@ Run `curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh`
## 2. Install npm
### Windows:
### Windows:
https://nodejs.org/en
@@ -25,11 +25,17 @@ https://nodejs.org/en
`cargo install perseus-cli`
`rustup target add wasm32-unknown-unknown`
## 4. Install tailwindcss, for styling
## 4. Install docker for Postgresql
## 5. Install SeaORM for database
`cargo install sea-orm-cli`
## 5. Install tailwindcss, for styling
`npm install -D tailwindcss`
Also take a look at
Also take a look at
Website:
https://framesurge.sh/perseus/en-US/
@@ -39,6 +45,12 @@ https://blog.logrocket.com/building-rust-app-perseus/
# Building the project
To set up the database, run:
`$env:DATABASE_URL = "postgres://elo:elo@localhost:5432/elo_app"; sea-orm-cli migrate up`
Updating entities after updating database:
`$env:DATABASE_URL = "postgres://elo:elo@localhost:5432/elo_app"; sea-orm-cli generate entity -o entity/src --with-serde both`
To build CSS run:
`npm run build`