This web application is the primary interface for Game On! - through which tournaments are managed, results are submitted, and leaderboards visualised.
- Using the Terminal, switch into this directory using
$ cd /client
- Start the React project in development mode (incl. Hot Loading) using
$ npm start
- Open http://localhost:3000 to view it in the browser.
- In this
client
directory, create a file called.env.local
- Paste the following variables and adjust as required:
REACT_APP_AAD_REDIRECT_URI='https://localhost:3000/login'
REACT_APP_AAD_POST_LOGOUT_REDIRECT_URI='https://localhost:3000'
REACT_APP_API_URI='https://api.gameon.nz' // or localhost address
HTTPS=true
Any variables defined in .env
can be customised in .env.local
to meet local development needs.
- Using the Terminal, switch into this directory using
$ cd /client
- In the console:
$ npm run build
to compile the React code. - Serve the newly created
./build
folder (entrypoint:index.html
) using your preferred web server.
Find out more about deploying a React application at this link (also contains a section on Azure deployment).