Before you start, make sure you have the following installed on your machine:
-
Clone the Repository:
git clone https://github.com/saadazghour/Local-Restaurant-Finder.git cd Local-Restaurant-Finder
-
Install Dependencies:
npm install
-
Configure Environment:
API_URL=https://api.yelp.com/v3/businesses API_KEY=Om7o9BoujNHNNQSzxwTjMvF2yA5QCjoZQ0EjQK5cFUBoEiKqcVt8bCB1Cv5792mTNB1haNo55HeiNPiWepB0Ur8dQ-Tdn-PwSFXz6MAe4nsZf2TVWiIQjEVJoYW7XnYx BASE_URL=http://localhost:3001 CORS_PROXY_URL=https://cors-anywhere.herokuapp.com
-
Enable CORS access by visiting this link:
To fix this, you need to request temporary access to the Heroku Proxy Server by going to the below URL:
https://cors-anywhere.herokuapp.com/corsdemo
-
Run the App:
npm start
Feel free to contribute to the project and make it even better! If you encounter any issues or have suggestions for improvements, please open an issue. We welcome your contributions and ideas.
Happy coding! ๐