Before starting development or usage of the frontend app, ensure you have all of the prerequiste software installed below.
Clone the repository to your local development environment using:
# HTTPS
git clone https://github.com/uwpokerclub/app.git
# SSH
git clone git@github.com:uwpokerclub/app.git
# GH CLI
gh repo clone uwpokerclub/app
# Change into project directory
cd app
## first time installation
npm install
To start the app for local development you can run the following command:
npm start
Note: If you are working on the admin portion of the app, you will also need to have the API server running locally as well.
This will start the React development server on http://localhost:3000. The development server will also hot reload for almost all code changes so you can continue to develop without restarting the application.
To run tests, run the following command:
npm test
To build a production ready version of the application, you can build the Docker image with the Dockerfile provided in this repository. This will internally run yarn build
which will create a production ready build of the React app, and copy the build files into a thin nginx image.
docker build .
TBD
The UWPSC Admin App is licensed under the terms of the Apache 2.0 License and can be found here.