I created this app to test out and learn the following Fullstack technologies:
- Actix Web [ Rust ]
- GraphQL
- React Native
- Clone the repository
- Set up the PostgresQL database using docker-compose by running the following command in the root directory:
docker-compose up -d
libpg required to continue!
- Change directory to
actix_web_service
cd actix_web_service
- Install Diesel CLI
cargo install diesel_cli --no-default-features --features postgres
- Run the following command to install the dependencies:
cargo build
- Run the following command to run the migrations:
Diesel migration run
- Run the following command to start the server:
cargo run
- Change directory to
react_native_app
cd react_native_app
- Install the dependencies:
npm install
- Inside the
.env
file, change theEXPO_PUBLIC_BASE_URL
to the IP address of your machine.EXPO_PUBLIC_BASE_URL=http://<BACKEND_IP_ADRESS>:8080
- Run the following command to start the app:
npx expo start
- Scan the QR code using the Expo Go app on your phone or run the app on a simulator.