Table of Contents
This repository will be the repository containing the the frontend of the Portfolio.
The main functionality of this app is to make a visual page that retrieves the data from a backend or from a data file.
The frameworks/libraries used to complete this project are:
To get a local copy up and running follow these simple example steps.
Before installing the software you must have installed the npm package. You can do it using the next command.
- npm
npm install --global yarn
The steps to get working the project are the following ones:
- Clone the repo
git clone https://github.com/Mariovido/portfolio-frontend.git
- Run the following command.
yarn install
- Create an .env file called
.env
on the root directory and fill the fields with your data.VITE_REACT_APP_USE_SERVER="ENTER IF YOU'RE USING AN API" VITE_REACT_APP_WEB_TITLE="ENTER YOUR TITLE OF THE PAGE" VITE_REACT_APP_BASE_URL="ENTER YOUR BASE URL" VITE_REACT_APP_BACKEND_URL="ENTER YOUR BACKEND URL" VITE_REACT_APP_USER_ID="ENTER YOUR USER ID"
To start using the app you need to run the following steps:
- Open a terminal on the root folder
- If you want to use it in dev purpose run the following command
$ yarn dev
- If you want to use it to run the tests run the following commands
# unit tests $ yarn test # test coverage $ yarn test:cov
- If you want to test if your build is working run the following commands
# build the app $ yarn build # runs the built app $ yarn preview
Distributed under the MIT License. See LICENSE
for more information.
Your Name - @mariovido - [email protected]
Project Link: https://github.com/Mariovido/portfolio-frontend