This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from GaloyMoney/update-readme
Update README
- Loading branch information
Showing
1 changed file
with
43 additions
and
1 deletion.
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,3 +1,45 @@ | ||
# Galoy Tips | ||
|
||
This repository is a web application that can be used to send tips to users. | ||
## What is it for? | ||
|
||
This repo is a web application that can be used to send tips to users. | ||
|
||
It's packaged as a docker image, and is automatically installed as part of the Galoy helm charts. | ||
|
||
With a default installation, Galoy-Tips can be access under `tips.domain.com`. | ||
|
||
Galoy-Tips usese query, mutation, and subscription operations from the Galoy's graphql API endpoints `api.domain.com` as defined in [schema.graphql](https://github.com/GaloyMoney/galoy/blob/main/src/graphql/main/schema.graphql) | ||
|
||
## How to run this repo locally? | ||
|
||
In the project directory, you can run: | ||
|
||
```sh | ||
yarn install | ||
export GRAPHQL_URI="https://api.domain.com/graphql" | ||
export GRAPHQL_SUBSCRIPTION_URI="wss://api.domain.com/graphql" | ||
yarn start | ||
``` | ||
|
||
This will run the app in the development mode. | ||
|
||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will automatically reload when you make edits. | ||
|
||
You will also see any lint errors in the console. | ||
|
||
### How to build for production? | ||
|
||
In the project directory, you can run: | ||
|
||
```sh | ||
yarn install | ||
export GRAPHQL_URI="https://api.domain.com/graphql" | ||
export GRAPHQL_SUBSCRIPTION_URI="wss://api.domain.com/graphql" | ||
yarn build | ||
``` | ||
|
||
This will build the app for production under a `build` folder. It will bundle React in production mode and optimize the build for the best performance. The build will be minified, and the bundled files will include unique hashes in their names. | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |