Important
To clone the repository on your local device:
- Find a local folder on your laptop where you would like to store your project.
- EX: Desktop, Download, etc.
- Create a folder for Open Project with
mkdircommend$ mkdir op - [Optional] Create a folder for LumenRoute
$ mkdir lumenroute - Follow the steps bellow:
Clone Repository
-
Clone the remote repository with the url:
$ git clone https://github.com/Jennyl51/LumenRoute -
Change directory to the folder you just cloned with
cd$ cd LumenRoute -
[Optional] Check remote connections with:
$ git remote -v -
Pull all changes from the remote end
$ git pull origin main -
Download the data files from City of Berkeley Police Deparment Data Portal: https://bpd-transparency-initiative-berkeleypd.hub.arcgis.com/search or from the Data.zip shared in #lumenroute Slack Channel
-
Move the Data.zip to LumenRoute directory, and unzip the Data.zip
-
Make sure the datasets and csv file's names are matching with the shared code, please revise the name of the files on your local laptop instead of modifying the written code.
-
Never add or push the data file to github repository. Same for .env file which stores the API keys.
- please add the file name to .gitignore before you push to github.
-
Move the Data folder under assests/, your directories should look like
LumenRoute/
.expo/
.vscode/
app/
assets/
Data/ #moved to here, should be in gray color as it's untracked
dummie-data/
images/
components/
...
...
-
Run "npm install" to install node_modules at the main directory
-
Run "npx expo start" to checkout the app!
- Press "w" for website view
- Download "EXPO GO" mobile app and Scan the QR with camera for mock mobile app view
-
Create .env file
- Add personal API KEYs to the .env file, including:
- EXPO_PUBLIC_GOOGLE_MAPS_API_KEY - GOOGLE_IOS_CLIENT_ID - GOOGLE_ANDROID_CLIENT_ID
- Run the following commends to install libraries:
$ pip install osmnx pandas numpy
- Download git command for large files:
$ brew install git-lfs
$ git lfs install #enable lfs
$ git lfs track "*.csv"
$ git rm --cached '*.csv'- Run this to enable larger push:
git config http.postBuffer 524288000
git config http.maxRequests 100
git config pack.windowMemory "100m"
git config pack.packSizeLimit "100m"
-
Pull changes before editing
$ git pull origin main
-
Create a new branch for your code:
- EX: I created the map screen
$ git checkout -b page/map_screen- Feel free to just create a branch with your name:
- EX:
$ git checkout -b jenny-code -
Commit your changes:
$ git add . #Tells the systems what files to push $ git commit -m"your message here" #Commit the changes to local end
-
Push changes to your branch:
git push origin branch_name #Push changes to remote repo