Skip to content

Instantly share code, notes, and snippets.

@luisjunco
Last active December 6, 2023 09:51
Show Gist options
  • Save luisjunco/a51ed0927c41bbafcd6275ae1c09d935 to your computer and use it in GitHub Desktop.
Save luisjunco/a51ed0927c41bbafcd6275ae1c09d935 to your computer and use it in GitHub Desktop.
Ironhack - Project 3 Setup

πŸ“ | Create a parent directory

To keep things organized, create a parent directory:

  • Navigate to the directory where keep your code (ex. navigate to your module3 directory).
  • mkdir our-cool-project

NOTE: replace "our-cool-project" with the name you choose for your project πŸ˜‰

πŸ‡§ | Backend (Express API, created with ironlauncher)

  • Navigate to the parent directory
  • npx --yes ironlauncher@latest our-cool-project-backend --auth --json
  • cd our-cool-project-backend
  • git init + make an initial commit
  • run the backend app in your machine (ex. npm run dev)

πŸ‡« | Frontend (React App, created with Vite)

  • Navigate to the parent directory (NOTE: for the next step, make sure you're in the parent directory)
  • npm --yes create vite@latest our-cool-project-frontend -- --template react
  • cd our-cool-project-frontend
  • npm install (this will install the initial dependencies from Vite)
  • git init + make an initial commit
  • run the frontend app in your machine (ex. npm run dev or npm run dev -- --port 3000)

πŸ†™ | Upload both repos to GitHub

  • Create an organization on GitHub (ex. "student 1" creates the organization)
  • Add "student 2" as a memeber of the organization
  • Upload both repos to GitHub
  • For each repo, add "student 2" as a collaborator for that repo (ex. "admin").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment