-
Notifications
You must be signed in to change notification settings - Fork 11
RightOn Onboarding Guide
-
-
Review this Intro to React as needed and follow "Setup Option 2"
-
Make sure you have a recent version of Node.js installed
-
Once installed, run this command on your local machine
npm install create-react-app -g
-
You've installed React JS globally on your machine!
-
To test the React environment, execute
npm start
-
-
-
Navigate to a pre-existing directory or create a new one where you'd like to clone the project.
-
Use your Github account to find RightOn's repository for the project you're looking for.
-
Copy the HTTP/SSH key by clicking "Code" on the project repository.
-
In the preferred directory on your machine, execute the following command:
git clone "https/ssh key"
Note that "https/ssh key" is a placeholder for the actual github key of the RightOn project.
-
You've now cloned RightOn's project from Github to your computer! Repeat steps to clone another project.
-
-
-
If the React environment setup was successful, simply start the project with the following command:
npm start
-
-
-
Before pushing into production, make sure the main branch and dev branch are in sync and updated. Make a Github pull request to merge your changes (local branch) to the dev branch and main branch respectively.
-
Navigate to the main branch.
-
Run the main branch build script for the website with the following command:
npm run build
This should create a temporary /build directory in your local project.
-
Navigate to your file manager where the website project is located on your computer.
-
Visit the RightOn AWS website and log in with your account. Navigate to the AWS S3 Bucket Service.
-
Search for the "www.rightoneducation.com" bucket
-
Open it and click "Upload". Drag the contents inside the build folder into the upload section. (Make sure to upload the contents of the build folder, not the build folder itself.)
-
Confirm your upload by doing a hard refresh of the live website
-
You've updated the live website!
-
-
- In order to run the web app locally, ask your dev team lead for the AWS export file and add it to your src directory. The AWS exports file will give you access to our AWS API. Without this file, you might encounter the following error:
- Keeping the file outside our public repo provides an added layer of security. For further details, check in with any dev lead.
- Navigate to the web/src directory and add the provided AWS exports file. Your directory should now look like this.
- You can now run the RightOn web app!
-
-
Expo CLI
- Expo CLI is a quick and easy environment for beginner app developers to start learning React Native.
- This is the first mobile app environment you can set up for React Native.
- Follow Official React Native Setup to check along.
- Install the Expo App on your mobile device.
- You can now start your project on your computer and use your mobile device to launch the app on your computer.
-
React Native CLI
- This is the second mobile app environment you can set up for React Native. This is also the required environment to develop RightOn’s mobile app.
- Follow Official React Native Setup for your Development OS (Windows, Linux, Mac) and Mobile OS (Android, IOS).
- In the Android Studio, for the emulator to connect properly, make sure your environmental variables use the correct paths. This can be referenced with any Android Studio setup documentation or YouTube videos.
- You can now start your project using React Native CLI!
-
-
-
As with the web app, you'll need to request the AWS exports file from one of the dev leads. For mobile app development, add it to your mobile app src directory. Both AWS exports files from the web-app and mobile app are different.
-
Navigate to the src directory of the mobile app and add the aws-exports file. Your directory should look like this.
-
If you are receiving errors about missing specific dependencies run the React Native Doctor command (After launching the Metro Bundler in your environment) and it should automatically fix such errors.
-
If problems still persist, check with a dev lead.
-