Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #106 from GaloyMoney/update-readme
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
samerbuna authored Oct 19, 2021
2 parents 920b1ec + 4bcfb85 commit 83f56d2
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
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.

0 comments on commit 83f56d2

Please sign in to comment.