The Digital Library frontend was built with:
To get a local copy up and running follow the steps below.
-
Clone the repository:
git clone https://github.com/FabrizioFornari/SPM2021-YMLA.git
-
Move in the frontend folder and install the required dependencies:
yarn install
- 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 withyarn start
.env.production
: used withyarn build
The server URL is specified inside the configuration files with the following format:
REACT_APP_API_URL=http://localhost:<SERVER_PORT>
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