2. Setup the servers using the instructions given below
3. Dockerize the given application using Docker and Docker-compose
Language: Rust
Framework: Actix-Web
ORM: Diesel
Database: PosgreSQL
Frontend: React
Compilers: Rust v1.7.0 and node v18.0.0
How to Setup Server[Linux installation]:
cd Backendsudo apt install libpq-devcargo install diesel_cli --no-default-features --features postgres- CREATE DATABASE rust_server [in psql CLI];
- Add ENV variables for DB connection
diesel setup[Generates the tables]cargo run[server runs]
Any problems with setting up server refer to official cargo and diesel documents
How to Setup Frontend React Server:
cd Frontendnpm i[install dependencies]npm start[start react server]