-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dynamo-simulation
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,45 @@ | ||
An application that allows users to choose between different options and vote for their favorite one. Items that get more votes will get ranked higher. | ||
The idea is to make something like https://eloeverything.co/. | ||
# Battle of the Bites! | ||
|
||
***Get ready to indulge your taste buds and crown the ultimate culinary champion in Battle of the Bites!*** 🍔🍕🍣 | ||
Swipe, vote, and savor the showdown as iconic dishes from around the world go head-to-head in a gastronomic clash like no other. | ||
Will pizza outflavor sushi? | ||
Can burgers grill their way to victory over tacos? | ||
Join the epic feast and help your favorite bites seize their rightful spot on the podium of delicious dominance. | ||
Welcome to the ultimate flavor face-off! | ||
|
||
Check out the app's demo at https://d150bm8l5c4qqp.cloudfront.net/. | ||
|
||
![Battle of the Bites screenshot](screenshot.png) | ||
|
||
Inspired by https://eloeverything.co/. | ||
|
||
## Development | ||
|
||
To test the website, you must first deploy an instance of the application through `wing compile -t tf-aws main.w`, and then deploy the artifacts in `target/main.tfaws` using `terraform init` and `terraform apply`. | ||
> **Note** | ||
> This project can't be tested using the Wing simulator yet. | ||
After, login to AWS to get the API Gateway URL, and add a `config.json` file to `website/public` that contains the following: | ||
### Deployment | ||
|
||
To deploy your own copy of the app, first make sure you have AWS credentials configured in your terminal for the account and region you want to deploy to. | ||
Then: | ||
1. Clone this git repository. | ||
2. Compile the project to AWS (with Terraform) using `wing compile -t tf-aws main.w`. | ||
3. Run `cd target/main.tfaws` to find your deployment artifacts. | ||
4. Run `terraform init` and `terraform apply`. | ||
|
||
### Website | ||
|
||
1. Clone this git repository. | ||
2. Run `cd website`. | ||
3. Run `npm install`. | ||
4. Create a file at `website/public/config.json` that contains the following: | ||
|
||
```json | ||
{ | ||
"apiUrl": "<API GATEWAY URL>", | ||
} | ||
``` | ||
|
||
Finally you can `cd` into `website` and run `npm run start` to start the development server. | ||
Replace <API GATEWAY URL> with the URL of the API Gateway that was created when you deployed the app. | ||
|
||
5. Run `npm run start` from `website` to start the development server. Any changes you make to the website will be automatically reflected in the browser. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters