Skip to content

MGallivan00/Capstone_22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone_22

Created by- Maria Gallivan, Dawson Kanehl, Zoe Norden, Connor Snow
CSCI 483
Apr 20 2022

Table of Contents

  1. Repo set up and clone
  2. Install packages
  3. Launching the app
  4. Using the app
  5. Making a tree
  6. Save tree
  7. Load tree
  8. Special notes

Step 1-Repo set up and clone]

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.

Step 2- Install packages

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.

Step 3- Launching the app

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.

Step 4- Using the app

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.

background

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.

menu

Step 5- Making a tree

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.

Tree

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.

connect

Step 6- Save Tree

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.

Step 7- Load Tree

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.

Special notes

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);
}
}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •