This is the front-end, client application for BetterSquared, a group-based, simulated sports betting app. Written in Typescript, utilizing React, TailwindCSS, and Vite.
To set up the certificate for the client application:
- Modify
/etc/hosts
file to map127.0.0.1
tobettersquared.com
- Generate the SSL/TLS certificate:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout bettersquared.key -out bettersquared.crt -subj "/CN=bettersquared.com"
- Run
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain bettersquared.crt
- Add the certificate to your browser's trusted certificates by going to chrome://settings/security and under "Manage certificates", import bettersquared.crt and trust it.
- Clone the repository:
git clone https://github.com/sebaraj/BetterSquared-frontend
- In the root directory of this project:
- Install the dependencies:
npm install
- Run the development server:
npm run dev
- Install the dependencies:
- Start the backend, BetterSquared
The application can be accessed at: https://bettersquared.com:8080/.
@headlessui/react
@types/react-router-dom
axios
fs
headlessui
prop-types
react
react-confirm-alert
react-dom
react-router-dom
vite-plugin-proxy