Git Product home page Git Product logo

bootcamp_09202021's Introduction

Welcome to the Front-End Web Development Boot Camp

DevelopIntelligence Logo

Software developer training for enterprise organizations

DevelopIntelligence helps you onboard, upskill and reskill your tech talent with innovative software developer training.

We do this by designing and delivering learning programs customized to your technology stack, corporate culture and business objectives. Our goal is to make sure your employees know how to apply their new skills to your particular projects.

We shorten the learning curve so your software developers can contribute more quickly to mission-critical endeavors.

Class Information Page

https://www.t4d.io/developintelligence-front-end-boot-camp-09202021

Other Resources

The instructor will distribute additional private links during class for downloading courseware, and downloading recordings...

All code in this repository is distributed under the MIT license.

How to Use the Instructor's Version

The following instructions will help students pull down the instructor's version to resume class where the instructor is.

  1. Clone this repository to a new folder. Do not attempt to copy these files over your version or another version which you have cloned. Replace FOLDER_NAME with the name of a new folder which will be created when the content is cloned.
git clone https://github.com/t4d-classes/bootcamp_09202021.git FOLDER_NAME
  1. Change into the folder you cloned into.
cd FOLDER_NAME
  1. Change into the demo-app folder you cloned into.
cd demo-app
  1. Run the following command to install the NPM packages.
npm install
  1. To start the React application, run the following command.
npm start
  1. Open the editor of your choice and edit the files.

Configuration and Data for the REST API part of the class

To configure the REST API, two packages will need to installed into the project created by the Create React App generator.

  1. To install those packages, run the following command from within the root folder of the project:
npm install -D json-server npm-run-all
  1. Next, the package.json needs to be updated to easily run the REST API provides by the JSON Server. Here is the scripts configuration which can be copied and pasted for the REST API. When asked by the instructor, replace the scripts section of the package.json file in the demo-app project with the scripts section below.
"scripts": {
  "start": "run-p web rest",
  "web": "react-scripts start",
  "rest": "json-server --port 3060 ./db.json",
  "build": "react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject"
},
  1. Finally, the REST API data file needs to be created. The data file should be named db.json and placed in the project root folder.

VERY IMPORTANT! The db.json file will be placed in the demo-app folder, the same folder as the package.json file. The db.json file should NOT be placed in the src folder.

  1. The JSON below should be copied and pasted into the file.
{
  "colors": [
    { "id": 1, "name": "red", "hexcode": "#ff0000" },
    { "id": 2, "name": "green", "hexcode": "#00ff00" },
    { "id": 3, "name": "blue", "hexcode": "#0000ff" }
  ],
  "cars": [
    {"id":1,"make":"Ford","model":"Fusion Hybrid","year":2019,"color":"blue","price":45000},
    {"id":2,"make":"Tesla","model":"S","year":2018,"color":"red","price":100000}
  ]
}
  1. To verify the REST API is working, run the npm start command and browse the following URL: http://localhost:3060/cars.



All course content and teaching is provided by: T4D.IO

bootcamp_09202021's People

Contributors

ericwgreene avatar

Watchers

James Cloos 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.