Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisae9/split
A web app created to aid in splitting grocery receipts between roommates.
https://github.com/chrisae9/split
gh-pages javascript react react-bootstrap webapp
Last synced: about 1 month ago
JSON representation
A web app created to aid in splitting grocery receipts between roommates.
- Host: GitHub
- URL: https://github.com/chrisae9/split
- Owner: Chrisae9
- License: mit
- Created: 2020-12-21T22:30:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T07:57:38.000Z (about 4 years ago)
- Last Synced: 2024-11-12T21:45:00.143Z (3 months ago)
- Topics: gh-pages, javascript, react, react-bootstrap, webapp
- Language: JavaScript
- Homepage: https://split.chis.dev
- Size: 3.66 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Split
A React application to split a grocery bill between contributors.
## Setup
Head over to the [Google Developer Console](https://console.developers.google.com/apis/credentials).
Create a new OAuth client ID.
Go to the settings and make sure that the correct URI origins are set under `Authorized JavaScript origins` and `Authorized redirect URIs`.
For local/testing use `http://localhost:{port}`.
For production use `https://{domain}`.
Create a `.env` in the project source folder and set these environment variables accordingly:
```
REACT_APP_GOOGLE_CLIENT_ID = {Client ID from Google Dev Console}
REACT_APP_GOOGLE_CLIENT_SECRET = {Client secret from Google Dev Console}
REACT_APP_SERVER = {REST API url}
```If hosting on a GitHub pages branch you will need to set the Google Client ID & Secret using GitHub Secrets.
For more information on how to setup the REST API visit: https://github.com/Chrisae9/split-backend. Unfortunately this cannot be hosted on GitHub pages since it only allows for static websit hosting.
Install dependencies.
`npm install`
## Run
For local hosting/testing use.
`npm start`
To deploy to GitHub pages make sure the correct homepage is set at the top of `package.json`.
`npm run deploy`