Required images and data.json are in the public folder in order to be able to change the data without the need to rebuild the app.
Cloning from GitHub:
git clone git@github.com:rafaelalma/mayoral-test.git
cd mayoral-test
npm install
npm start
From a GitHub downloaded .zip:
- Extract from mayoral-test-main.zip
- Navigate to mayoral-test-main and run
npm install
npm start
npm run build
npx serve -s build
Tested with Node.js v16.13.0 LTS
and npm version 8.1.4
Tested in Mozilla Firefox v94.0
for Ubuntu (development and production builds)
Project bootstrapped with Create React App
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner in the interactive watch mode.\
Builds the app for production to the build
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!