This project is divided in 3 parts, REST API, WEB and MOBILE.
It is composed by a website where entrepreneurs can offer tours in their companies, a mobile app, where people can schedule a visit and the rest api,
to deal with all the data and logic, sending all requests and responses in real time with no need to reload any screen.
- ReactJS
- React Native
- React Navigation
- React Native Community Async Storage
- React Native Vector Icons
- Styled Components
- Axios
- Socket.io-client
$ git clone https://github.com/DanielMesquitta/techtours && cd techtours
inside the techtours folder
# Go to the correct folder
$ cd backend
# Install the dependencies
$ yarn
# Start
$ yarn start
In another shell with the backend running, inside the techtours folder
# Go to the correct folder
$ cd frontend
# Install the dependencies
$ yarn
# Start
$ yarn start
Step 1: In another shell with the backend running, inside the techtours folder
# Go to the correct folder
$ cd mobile
# Install the dependencies
$ yarn
Step 2: Find your ip to configure your local host
# on Windows
$ ipconfig
# on Linux
$ ifconfig
it will probably be the first number that starts with 192.168
Step 3: Configure your local host inside the mobile folder, run:
$ code src/services/api.js
Fell free to use your favorite editor but this step will only work with VS Code.
Change the variable ip
according to yours machine
const ip = '192.168...'
Step 5: Now, on your terminal, inside the mobile folder
# Run this if you will emulate on an android
$ yarn android
# Run this if you will emulate on an ios
$ yarn ios
Step 6: The last step is configure your emulator with your ip
You need to access the developer menu on your emulator, pressing "D" inside your node.js window.
It will open a window on your emulator, inside there
press settings
, then Debug server host & port for device
and then,
type your ip with :8081
in the end.
For example, if my ip where 192.168.100.30
, I would type 192.168.100.30:8081
Now you can reload the app and you be finished