Make sure you have Go and Postgres installed.
Run the following command from the coffee-backend root to create the coffeeshop schema:
psql -U ${db_user} -d ${db_name} -f ./schema/create_coffeeshop_schema.sql
- Create an app with Yelp to get your client ID and API key.
- Register an app with Google Maps to get your API key(s).
- Run the following command from the root directory to install all of the third-party dependencies:
dep ensure
- Run the following command from the root directory to start the server:
go run main.go --port=${port} --db_user=${db_user} --db_password=${db_password} --db_name=${db_name} --yelp_client_id=${yelp_client_id} --yelp_api_key=${yelp_api_key} --google_maps_api_key=${google_maps_api_key}