Skip to content

this setup will allow us to switch from one project to another quickly for study reference

Notifications You must be signed in to change notification settings

stevenspicher/react_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React_Examples

This project will allow you to switch quickly between lecture examples, breakout exercises, etc without cloning multiple projects. The folder structure of the base install has been altered slightly:

  1. There is no App folder inside src/ after the initial install. It is created during './load.sh' to clean up gitignore issues. this means npm start will not work out of the box! keep reading
  2. index.js now imports App from './App/App';
  3. There are two new folders: /scripts and /projects.

Installation

  1. npm install as normal
  2. Mac users: in top directory run: chmod +x scripts/*
  3. ./load.sh to choose the react app to load. (see below for more info)
  4. npm start to start server

Scripts

To run scripts - command line from inside scripts folder, run the script preceded by "./" (This will auto-complete with TAB)

  • ./load.sh - creates src/App and copies contents of project/'project name' into it

    • have to type the project name completely and correctly. Does NOT autocomplete with TAB
    • load.sh while server is running will switch the server to the selected project - no need to re-run npm start
  • ./save.sh - saves contents of src/App/ folder into project/'project name' folder

    • only necessary if you make changes to the project after loading it into the base install
    • this will save to the correct folder automatically (if the project folder includes a proj/"name of project")
  • ./create.sh - creates new project/'project name' folder, saves contents of current base/src/App/ folder into it

    • creates proj/'project name' to allow saving automatically

Project Folders

The project/ folders contain only the contents of the App/ folder for that project, and eventually a README for each project

Projects:

  1. base (simple base app for creating new projects)
  2. intro
  3. second_app
  4. admin_page
  5. auth_routes
  6. bootstrap_react
  7. dynamic_nested_routing
  8. exercise_bootstrap
  9. history_object
  10. hooks
  11. hp_character_page
  12. menu_app
  13. recipe_app
  14. refresher_1
  15. routing_example

About

this setup will allow us to switch from one project to another quickly for study reference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages