Yumlist is a mobile-first web application where you can make lists of your favorite restaurants and share them with your friends. Yumlist uses the Yelp API to find restaurants by name or category in major cities. You can vote on your favorite restaurants by giving YUMS and see the most popular restaurants in your list.
- Install PostgreSQL.
- Clone the Yumlist repository; run
npm install
on the root folder. - Create the databases required by the config.json file: yumlist and yumlist_test. Jest automatically sets up the environment variable to test, so both databases must exist to ensure all functionality is correct.
- Set up a correct username for both development and test environments in the config.json:
- Either set them up as the local administrator's username,
- or create the postgres role in PostgreSQL.
- Create a .env file at the root of your project, and add a new SKIP_PREFLIGHT_CHECK variable with true as its value.
- To open shared links locally, you need to allow sharing of local files. Open
System Preferences -> Sharing -> File Sharing
.- Tick the File Sharing option.
- Copy the URL located at the top of the preferences, after
Computers on your local network can access your computer at:
. It should resemble Admins-MacBook-Pro.local - Paste this copied URL into a new REACT_APP_URL variable of the .env file if you want to enable sharing lists. Otherwise, create the REACT_APP_URL variable with localhost as its value.
- Create a variable called YELP_KEY and set as its value the key provided by your administrator.