Skip to content

Instantly share code, notes, and snippets.

@JEduardoRJx
JEduardoRJx / backend_cheatsheet.md
Last active December 4, 2019 21:58
BACKEND_getting_started_cheat_sheet.md

Node.js

  • npm i -g nodemon

Auto-generate a package.json (with default ‘yes’ to each of the standard questions) using:

  • npm init --yes

Express JS

mkdir NAME_OF_DIRECTORY

  • npm i express --save
  • touch server.js

J. Eduardo Rodriugez

Calendar

Calendar shows:

  • Class lectures
  • Work time
  • Mentor meetups
  • Mentor reflection time
  • Job hunting
  • Company research

Creating a React App

  1. In the terminal run npx create-react-app NAMEOFYOURAPP
  2. Cd into the new directory: cd NAMEOFYOURAPP
  3. Run npm install.
  4. You can run npm start to see if the app was set up correctly.

Setting Up Testing

  1. Install enzyme: npm i enzyme -D
  2. Install enzyme-adapter-react-16: npm install enzyme-adapter-react-16 -D

Session 4 Practice Tasks

The assignments listed here should take you between 1.5 and 2 total hours.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.