Welcome to Just Be Funny (JBF) — an improv simulator game and comedy academy! This application provides an interactive environment for users to practice improv skills and learn about comedy.
- Setup
- Pre-requisite Software
- Clone the Repository
- Backend Setup
- Running Simulators
- Requirements
- Android Emulator
- iOS Emulator
- Troubleshooting
- Additional Resources
Before setting up the project, ensure you have the following software installed:
-
Homebrew: A package manager for macOS, used to install MongoDB and other dependencies.
- Install Homebrew: https://brew.sh/
-
MongoDB: A NoSQL database used by the backend.
- Install MongoDB using Homebrew:
brew tap mongodb/brew && brew install mongodb-community@8.0
- Install MongoDB using Homebrew:
-
Xcode: Required for iOS simulator and iOS-related development.
- Install Xcode from the Mac App Store: https://apps.apple.com/us/app/xcode/id497799835?mt=12
-
Android Studio: Required for Android simulator and Android-related development.
- Download Android Studio: https://developer.android.com/studio
Make sure all the required tools are properly installed and configured before proceeding with the setup.
First, clone the repository:
git clone https://github.com/akuligowski9/jbf
cd jbfNext, install dependencies from the repository
npm installThe backend relies on MongoDB for data storage and Node.js for server functionality.
- Navigate to backend folder:
cd api- Start the backend server w/MongoDB:
npm run start:devNote: If MongoDB is already running:
npm startThe server should now be running on http://localhost:5001 with MongoDB connected.
After opening Xcode and Android Studio, use the following commands in a separate terminal to start the simulators:
- Android:
npm run android- iOS:
npm run iosIf the simulators don't start, ensure you have the appropriate Android and iOS SDKs installed, and check that the emulators are set up correctly.
- Device: Pixel 4 with API Level 35
- Android Version: 15.0
- Device: iPhone SE (3rd generation)
- iOS Version: 17.5
These configurations are recommended to match the optimal testing environment.
Here are some common issues and solutions:
- Ensure you have installed Homebrew and MongoDB correctly. Run
brew services listto check the MongoDB status. - If you get a "permission denied" error, try running
sudo brew services start mongodb-community@8.0.
- Ensure you’ve started MongoDB first. Check the backend server logs for any errors.
- Make sure Android Studio and Xcode are properly installed with the necessary SDKs.
- For Android: If you see a “No emulators found” error, create a new virtual device in Android Studio from the "Virtual Device Manager"
Refer to the following documents for more detailed requirements, comedy content, and data references: