Giter Site home page Giter Site logo

web_code_along_13.1_apis_starter's Introduction

Code-Along 13.1 - APIs

Requirements

  • Node >= 16.x (prefer current LTS version)
  • NPM >= 8.x (upgrade executing npm i -g npm)
  • Chrome >= 103.x

โ— Other browser/Node/NPM configurations might work but haven't been tested.

Highly Recommended

  • Postman HTTP client or similar.
  • React Devtools & Redux Devtools Chrome extensions.

Set Up

  1. Clone repo without forking. If you cloned before today, execute git fetch && git reset --hard origin/main to get the latest
  2. Execute npm run prep to install dependencies and set up your development database
  3. Execute npm run dev to launch the project in a dev server
  4. Visit your app by navigating Chrome to http://localhost:3000

Notes About Setup

You can optionally run frontend and backend separately. Instead of npm run dev:

  1. npm run frontend
  2. npm run backend (or use the VSCode's integrated Node debugger to launch the backend)

Accounts

  1. Admin, username: admin password: admin
  2. Non-admin, username: foo password: 1234

Notes About Accounts

  • Anonymous users can answer multiple-choice questions, but stats aren't stored.
  • Registered users have access to their stats stored in the backend.
  • Admin users can create new and edit existing questions.
  • Feel free to register additional accounts (will be non-admin).

Tests

  1. npm test runs all tests.

Note About Tests

The test script kills the development server because tests need to spin up a testing db and free port 9000. To restart nodemon just type rs in the terminal of the dev script, or restart your debugger.

Catching Up with Your Instructor

  1. npm run ketchup resets your local files to the last push by your instructor to origin/codealong.
  2. npm run ketchupfull in addition to the above reinstalls dependencies and resets the database.

Please remember to check the package.json file to see all available scripts.

web_code_along_13.1_apis_starter's People

Contributors

ladrillo avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.