- Install HomeBrew: instructions
- Run:
brew install node
This will also install npm.
- Go to Git projects folder:
cd /path/to/my/git_folder
- Clone repository:
git clone https://github.com/careerfairsystems/arkad-app.git
- Go to the root of the cloned repo
cd /path/to/my/git_folder/repo_root
- Install npm:
npm install
You can choose to run the application on either device or phone simulator.
iOS and Android instructions can be found here.
These steps can be quite tricky if you haven't used Xcode or Android Studio before, running the application in a simulator, which is described below, is easier to setup.
- Install React Native CLI (Command Line Tool):
npm install -g react-native-cli
- You might have to run
npm install
again. - You should be able to just run
react-native run-ios
andreact-native run-android
respectively.
- You might have to run
If you run into problems the following guides can be useful for iOS and Android respectively. You don't need to read the Creating a new application
section as this has already been done.
Tip: Instead of using a virtual device in Android Studio you can use Genymotion, you download it from here and you'll also need this plugin.
Run: brew install watchman
- Install Atom
- Open Atom and go to Settings/Preferences and select Install in the side menu
- Install the following packages:
busy-signal
,intentions
,linter
,linter-eslint
,linter-ui-default
,prettier-atom
- Setup
prettier-atom
by changing the following settings:- ESLint Integration:
true
- Format Files on Save:
true
- Single Quotes:
true
- Semicolons:
false
- ESLint Integration:
These settings are important to avoid conflicts and to get a common coding structure.
Install NodeJS @v.11.13 from here https://nodejs.org/dist/v11.13.0/ Later version might work, however later than version 12.9 has a compability issues our metro bundler version as of writing this 6/12/2019
Follow the instructions under "Android development environment" on the react-native page (React-Native CLI Quickstart, Windows, Android) To install correct Android SDK Build tools
- Go to File - Settings - System settings - Android - SDK Tools
- Tick "Hide obsolete" and "Show Package details"
- Tick Android SDK Build Tools @ 28.0.3
- Press apply
- Go to your Git projects folder ex:
cd /path/to/my/git_folder
- Clone repository:
git clone https://github.com/careerfairsystems/arkad-app.git
- Go to the root of the cloned repo
cd /path/to/my/git_folder/repo_root
- Install npm:
npm install
- Install Atom
- Open Atom and go to Settings/Preferences and select Install in the side menu
- Install the following packages:
busy-signal
,intentions
,linter
,linter-eslint
,linter-ui-default
,prettier-atom
- Setup
prettier-atom
by changing the following settings:- ESLint Integration:
true
- Format Files on Save:
true
- Single Quotes:
true
- Semicolons:
false
- ESLint Integration:
You can choose to run the application on either device or phone simulator.
Android instructions can be found here.
These steps can be quite tricky if you haven't used Android Studio before, running the application in a simulator, which is described below, is easier to setup.
- Install React Native CLI (Command Line Tool):
npm install -g react-native-cli
- You might have to run
npm install
again. - Run
react-native run-android
to send the application to the virtual phone - Sometimes you need to start 2 cmd prompts in project directory, and do
react-native start
in one, then doreact-native run-android
in the other.
- You might have to run
If you run into problems the following guides can be useful Android. You don't need to read the Creating a new application
section as this has already been done.
Tip: Instead of using a virtual device in Android Studio you can use Genymotion, you download it from here. Genymotion generally works better but you need to use Android Studio if you want to check the console
- The art director should send you new SVG-files. They need to be exported with the correct settings. A screenshot of the setting exist here in the PG drive : https://drive.google.com/drive/u/2/folders/1cot4-DyqKzrlIvFA829D5-iwXmFVJyFF
- Go to https://www.smooth-code.com/open-source/svgr/playground/?fbclid=IwAR369muucvHP8eCg7-LHRuRPBmJixmhka9TV8KPrGU5CyEtebQDVu2s1e5c
- Tick react-native. Untick SVGO
- Paste SVG code into the right side.
- The page is kind of sensitive. You can remove the first row about XML and stuff. The first row should maybe only be the SVG code up until </title>
- Break it up so rows don't become too long.
- For the really big SVG files, you might split up the code and gradually move it over to the component map file.
- Move the new code over from the SVGR side to the map component. Replace the text between and
- Next, you need to add layered booth components. Use the script in resources/scripts/add_map_layers
- You should now have new working maps. Enjoy!
To keep track of previous year versions of the App, release-tagging is used. By going into release you can check the version from different years. If you need help to create a tag, a short guide is available here : https://github.com/careerfairsystems/arkad-app/blob/master/resources/documents/CreateReleaseGithub.docx