Skip to content

SpiderNitt/Devops-inductions-23-task-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]