Dudes of 708's knowledge base for getting started and tools we use
Back to homepage • software development guides
You’ll need the following already set up in order to follow the setup portion of this guide:
git
: You can follow the git setup guide in order to set up git.You can go the table of contents in order to jump to any section of setup.
Note: if you are a Linux user, you may have to access a NodeSource distribution. It is assumed that if you are a Linux user you know what you are doing.
Open a Terminal and run
npm i expo-cli --global
Log in to expo with the command:
expo login
This will bring up a page in your web browser where you can either login or create an account on Expo’s servers. Join the Dudes of 708 development team (owner: Gideon Tong).
If you have an Android device, jump to the Android device setup section. If you have an iOS device, jump to the iOS device setup section. You can set up both if you have both.
Optional Steps:
C:\Software\platform-tools
on Windows or /home/<username>/platform-tools
on macOS or Linux.cd
(change directory) command. For example, if I extracted it to C:\Software\platform-tools
, I would write cd C:\Software\platform-tools
.adb devices
on Windows or ./adb devices
for macOS and Linux computers.If you own a Mac, there are additional advanced setup steps you can take advantage of, but they will not be covered in this guide beacuse I don’t own a Mac. If you are a Mac user and would like to contribute usage of Xcode or other iOS debugging tools, by all means, please submit an improvement for this section.
If you already have an editor you like, jump to project structure.
I personally use VS Code, but I’m going to try to cover all the potential ways you may want to develop. If you don’t already use an editor, download VS Code and head on to the VS Code section
Otherwise, pick your editor of choice:
You can download VS Code at this link. Thankfully, because VS Code is designed as an Electron app, it provides Javascript/Typescript extensions, debugging, and IntelliSense out of the box. ChompChomp is written in pure Javascript with React extensions, and does not support Typescript at this time.
This is really all you need, but you should set up Expo Tools and React Native Tools (both are one click extensions to add) for your VS Code environment.
Next, proceed to setting up.
Why are you reading this if you already know your way around Vim? Set it up for JavaScript/TypeScript bindings and you’ll be fine. Next, proceed to setting up.
This isn’t actually a screenshot of the code, but this is Expo Snack.
Expo Snack runs in the browser and basically acts like a Repl.it, if you have used that before. It provides a way to develop and test without leaving your browser. You can access it here.
It provides all the libraries and tools built-in, and is a conveneint way to develop. It isn’t officially supported by ChompChomp but you are free to use this to develop if you wish to sync your changes to git
manually.
Next, proceed to setting up.
Xcode is the official code editor by Apple for Macs, and is only available for macOS. You can download it at this link. It is also the only way to self-compile the iOS version of ChompChomp, so you’ll need to follow this setup guide even if you don’t use Xcode normally so you can compile.
Download Xcode from the link above and run it. Apple will set up all the developer tools for you automatically. You’ll also need an Apple ID, which frankly is weird if you have a Mac but don’t have one.
Next, proceed to setting up.
Open Terminal or Command Prompt and navigate to the ChompChomp repository you cloned. Then run
npm ci
This process will take several minutes to complete if you’re running for the first time. If you need to update your packages, use the following command instead:
npm i
If you are curious how the files are laid out, please see file structure, or you can see the code structure if you want to get a sense of how the code is formatted so you can make similar contributions.
Use an editor of your choice to edit a file, and the commit it. If you don’t know how, see the guide to using git.
Run this command to start the development server:
expo start