Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.15 KB

Spider Devops Inductions - Task 2

Instructions:

1. Fork the given repo and set the your repo to private.
2. Setup the servers using the instructions given below
3. Dockerize the given application using Docker and Docker-compose


Tech Stack:

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 Backend
  • sudo apt install libpq-dev
  • cargo 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 Frontend
  • npm i [install dependencies]
  • npm start [start react server]