Skip to content

GyroZepelix/RAPG-stack-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAPG Stack

About

I created this app to test out and learn the following Fullstack technologies:

  • Actix Web [ Rust ]
  • GraphQL
  • React Native

Prerequisites

Installation

  • Clone the repository

Database

  1. Set up the PostgresQL database using docker-compose by running the following command in the root directory:
    docker-compose up -d
    

Backend

libpg required to continue!

  1. Change directory to actix_web_service
    cd actix_web_service
    
  2. Install Diesel CLI
    cargo install diesel_cli --no-default-features --features postgres
    
  3. Run the following command to install the dependencies:
    cargo build
    
  4. Run the following command to run the migrations:
    Diesel migration run
    
  5. Run the following command to start the server:
    cargo run
    

Frontend

  1. Change directory to react_native_app
    cd react_native_app
    
  2. Install the dependencies:
    npm install
    
  3. Inside the .env file, change the EXPO_PUBLIC_BASE_URL to the IP address of your machine.
    EXPO_PUBLIC_BASE_URL=http://<BACKEND_IP_ADRESS>:8080
    
  4. Run the following command to start the app:
    npx expo start
    
  5. Scan the QR code using the Expo Go app on your phone or run the app on a simulator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published