Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.41 KB

README.md

File metadata and controls

46 lines (27 loc) · 1.41 KB

Digital Library frontend

The Digital Library frontend was built with:

Getting started

To get a local copy up and running follow the steps below.

Prerequisites

  1. Download and install npm.

  2. Download and install yarn.

Installation

  1. Clone the repository: git clone https://github.com/FabrizioFornari/SPM2021-YMLA.git

  2. Move in the frontend folder and install the required dependencies: yarn install

Run & Build

  • To launch the web application in development mode: yarn start
  • To build the web application: yarn build

Before running or building the project, rembember to add the server URL in the configuration files:

  • .env.development: used with yarn start
  • .env.production: used with yarn build

The server URL is specified inside the configuration files with the following format:

REACT_APP_API_URL=http://localhost:<SERVER_PORT>

Testing

The tests was written using React Testing Library to test React components and MSW to mock APIs.

  • To execute the tests: yarn test
  • To get the tests coverage: yarn test:coverage