Giter Site home page Giter Site logo

homework-2-car1sle's Introduction

Homework 2 - Dev Setup and Deployment

This assignment is intented to help you set up your development environment for React. You will create a simple React App and deploy using one of the methods covered in lecture.

Step 1

  • Install npx following the instructions here: https://www.npmjs.com/package/npx
  • run npx create-react-app my-first-app to create the React application
  • In the newly created app, replace the contents of App.js including your name:
import './App.css';

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <p>Hello CSCI E-39!</p>
        <p>
          My name is ____________
        </p>
      </header>
    </div>
  );
}

export default App;
  • move all of the contents of my-first-app to the repos root directory (e.g. for mac/linux rm my-first-app/README.md && mv my-first-app/* .). You are going to want to keep this README.md and not the one generated by create-react-app
  • run npm install
  • start the app with npm start
  • verify the app is running
  • modify line 6 in App.test.js to:

const linkElement = screen.getByText(/Hello CSCI E-39!/i);

  • make sure all tests pass when running npm run test

Step 2

Deploy the application using Github Pages (https://github.com/prof-tejera/react-deployment-code#github-actions) or a different method if you prefer. As long as the URL is avaliable on the public internet and live for 2 weeks, then you can use whatever method you want.

Submitting

Edit this file (README.md) and complete the following:

That is all!

homework-2-car1sle's People

Contributors

github-classroom[bot] avatar

Watchers

Nico avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.