Skip to content

amercier/gilded-rose-visitor

Repository files navigation

Gilded Rose Visitor UI

Web UI for Gilded Rose Visitor, built with React.

Build Status Test Coverage Dependency Status devDependency Status Greenkeeper

Getting started

This application is built with Next.js.

Dependencies

Before starting, install NodeJS and Yarn.

yarn

Installs this project's dependencies in the node_modules folder.

Development

Note: Gilded Rose API must be available at http://localhost:8080/.

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Testing

yarn test --watch

Launches the test runner in the interactive watch mode.

Building

REACT_APP_API_URL=http://localhost:8080 yarn build

Note: replace http://localhost:8080 with the URL where the API is available in production, ex: /api.

Builds the app for production to the .next folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

License

License