Its purpose is to allow newcomers and experienced players alike to experiment with different deck variations and rapidly evaluate viability for competitive or social play.
-
Install dependencies using
npm install. -
Create a virtual device using the Android Virtual Device (AVD) manager: (you may have to create a project to do this)
- Select the
Toolsdrop down menu. - Select
AVD Manager. - Select
create virtual device. - Select your desired device to emulate and click
next. - You can change certain settings on the next page, the app was developed on a pixel 4 XL emulator running R ar API level 30.
- Click on the green play button in the AVD manager to launch your emulator.
- Select the
-
Run the backend server:
- Download and run IntelliJ -the community version is available for free.
- Open the server directory as a project in intelliJ (file path ~/{yourfilepath}/SkullTap/server) and run the server app by pressing the green play button. (to ensure ensure that you are not running the tests, they have been commented out)
- Ensure that the sever is running, by checking the terminal window output states something like this: "Started ServerApplication in 6.575 seconds (JVM running for 7.489)".
-
Fetch commands in the client will need to have your IP address added to replace my own:
const url = "http://{YOUR IP ADDRESSS GOES HERE}:8080/decks/" + deck_id + "/add-card"
const request = new Request();
request.post(url, currentCard)
.then(data => navigate('SpecificDeck',
{deck_id: data.id}))}
(There are 5 such fetches in the client app, one each in NewDeckForm & AddCardToDeckScreen then three in DeckScreen).
-
Run the front end server by entering
npm startorexpo startin the client file directory. This may open a browser window which prompts you to select an emulator. click onRun on device/emulator. You can do the same from your terminal window by simply keyingAfor Android. -
The app will now open on the emulator.
ENJOY! :)