This repository holds the front-end functionality for a recipe browsing and searching web app that allows users to maintain and share their collections of favourite recipes, as well as make new culinary discoveries. See what's cooking!
Here are instructions for how to install this locally on the repo:
- Clone the repo:
git clone https://github.com/fac29/CookWithWhat-FE.git
- Navigate to the repo:
cd CookWithWhat-FE
- Install NPM packages:
npm install
- Create a .env file :
touch .env.development
and include the following line:
VITE_REQUEST_URL = "your_local_develpment_server_adress eg. http://localhost:3000"
- Create a .env file:
touch .env.production
and include the following line:
VITE_REQUEST_URL = "your_production_backend_server_url"
- Enter the following script to run the server in the development mode:
npm run dev
- To build the app for production use the following script:
npm run build
Prettier should be installed with other packages upon initialization and should utilize the .prettierrc config file in the repository to ensure uniform formatting among contributors. For reference, the configuration is presented below:
{
"trailingComma": "es5",
"tabWidth": 4,
"singleQuote": true
}
TBC