https://github.com/winglang/voting-app
https://github.com/winglang/voting-app
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/winglang/voting-app
- Owner: winglang
- License: mit
- Created: 2023-07-13T22:49:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T15:36:04.000Z (almost 2 years ago)
- Last Synced: 2024-08-19T18:12:36.266Z (almost 2 years ago)
- Language: TypeScript
- Size: 841 KB
- Stars: 6
- Watchers: 9
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Battle of the Bites!
**_Get ready to indulge your taste buds and crown the ultimate culinary champion in Battle of the Bites!_** 🍔🍕🍣
Vote on different matchups as iconic dishes from around the world go head-to-head.
[](https://d21dqxvgiw7si8.cloudfront.net/)
Inspired by https://eloeverything.co/.
## Development
### Testing
You can test the web app locally using Wing Console.
1. Run `npm run build-react` to build the website.
2. Run `wing it main.w` to launch the Wing Console in your browser.
3. In the Wing Console, locate the website resource, and click on it to see its properties on the right sidebar. Click on the URL property to open visit the website in your browser.
For working on the React app, you can `cd` into the `website` directory and run `npm run start` to start the React app, which will automatically connect to the Wing simulator if you have the Wing Console running.
The page will automatically reload if you make changes to the React code.
### 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 run the following commands to compile the app into Terraform, and deploy it:
```
wing compile -t tf-aws main.w
terraform -chdir=./target/main.tfaws init
terraform -chdir=./target/main.tfaws apply
```
## Contributions
Pull requests are welcome.
## License
This project is distributed under the [MIT](./LICENSE) license.