Giter Site home page Giter Site logo

grad-testing-october's Introduction

CircleCI

The Pet Store ๐Ÿˆ

Setup Environment

  1. This workshop was written in node 11.14.0. While it should be compatible with later versions of node, if you do have any issues it is worth installing this version specifically. If you have Node Version Manager (NVM) installed you can use the command nvm use to switch to this version. If you don't have 11.14.0 installed it will prompt you to install it with the command nvm install 11.14.0.

  2. Copy the contents of .env.example into a new file .env in the root directory. The tests will not pass unless you do this. This configures the app to point to the API service URL.

โš ๏ธ๐Ÿšจ Please do not use npm. We used yarn while building the project, and while testing it with npm we found issues during installation. Please use yarn instead of npm ๐Ÿšจโš ๏ธ

Here are instructions to install Yarn on MacOS.

Here are instructions to install Yarn on Windows.

Install: yarn install ๐Ÿ˜ธ

Install all required dependencies to run this application.

yarn start ๐Ÿ˜ป

Runs the app in the development mode.

  • Open http://localhost:3000 to view it in the browser.
  • The app will update as you make changes without reloading thanks to HMR!
  • Lint errors will be displayed in the console.
  • Running this command will also start the api server http://localhost:3001/pets

API endpoint

GET http://localhost:3001/pets Returns all the pets.

yarn lint

Run the linter

yarn lint:fix

Run the linter and attempt to fix errors.

yarn test

Run tests in Jest watch mode.

yarn test:coverage

Run tests in Jest watch mode with coverage.

grad-testing-october's People

Contributors

nc-sarah-baines avatar anthonymedina avatar nc-jonny-rathbone avatar

Watchers

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