Created by- Maria Gallivan, Dawson Kanehl, Zoe Norden, Connor Snow
CSCI 483
Apr 20 2022
- Repo set up and clone
- Install packages
- Launching the app
- Using the app
- Making a tree
- Save tree
- Load tree
- Special notes
Create a folder somewhere that you want to save the GitHub project to, after this in the terminal navigate to said folder and pull the code from github with the command
git clone https://github.com/MGallivan00/Capstone_22.git.
cd in to the react app folder with in the project with the command cd react-app, then run the command npm install to install all required packages.
Now that the required packages have been installed you can launch the app, to do so while in the react-app directory run the command npm run start, this will launch the app through your web browser using local host 3000.
Navigate to your web browser and you should see a blue home page with a menu in the top right and a drag me node in the bottom left. This is seen in the image below.
From here you can navigate to the menu and load presets, save your tree or upload an existing tree that you have created previously. The menu is pictured below.
You can now drag and drop the node that says drag me in the bottom left to any where on the screen. Once the node is dropped onto the screen the bottom popup is displayed for the user to enter their desired information.
Users can populate the screen with as many nodes as they wish for the tree. Users will also need to connect the nodes to their parent to do this the user will click on the parent node and then click add connections at the top then select its children. Pictured below is this process.
Now that a tree has been created the user can save it to local storage in the users download folder and to the database. this is done by selecting menu and clicking on save, no need to fill in the file extension the program makes it a legible JSON.
The user will need to move the JSON from their download folder to the "user_uploads" folder within the src folder of the project. Once the JSON is in the "user_uploads" folder they can select upload. the user will be promoted to enter the file name, if it matches then the file is loaded.
currently the Google firebase is linked to a personal account, in order to view the data base the host of the database needs to invite each user. In its current form the database is backup storage. In an actual deployment a new firebase will need to made or comment out the lines associated with the database if its scrapped. to implement a new firebase the user would just need to make a project through google and then replace the const firebaseConfig with the apr.jsx
Ensure your rules in storage are as follows:
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if
request.time < timestamp.date(2022, 12, 31);
}
}
}



