A social hub application for LUMS students.
Developed using:
- PC running Windows/Mac/Linux
- NodeJS
- Expo CLI
npm install --global expo-cli
- Nodemon (Optional)
npm install -g nodemon
- Clone the repository to local machine using
git clone https://github.com/AhsanSarwar45/LUMSafar
. - Open the cloned directory in VSCode either manually or using
code LUMSafar
.
- Navigate to client directory using
cd client
. - Install required packages using
npm ci
. Go watch Better Caul Saul while your computer does its thing. - Start Expo using
expo start
. Duh.npm start
also works.
- Navigate to client directory using
cd server
. - Install required packages using
npm ci
. - Start the server using
npm run start
, or if you have nodemonnpm run start-n
. With nodemon, the server gets automatically restarted when you save any changes. - If you want to test the client with the local server instance, go to the
.env
file in theclient/
directory and replace content withLUMSAFAR_SERVER_URL='http://<your ipv4 address>:3001'
.
After running expo start
, you can run the client either on a physical device or an emulator. The app will reload automatically when you save any changes.
- Download Expo Go app on your smartphone.
- Open developer tools at
http://localhost:19002/
in your browser. - Scan the QR code using Expo Go app.
- Download Android Studio.
- Install an AVD Device. Refer to this guide.
- Start the AVD Device.
- After running
npm start
, press A and Expo will start the app on the emulator.