https://github.com/drewmoore/social-sharing-boilerplate
https://github.com/drewmoore/social-sharing-boilerplate
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drewmoore/social-sharing-boilerplate
- Owner: drewmoore
- License: apache-2.0
- Created: 2019-07-12T21:59:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T11:20:07.000Z (over 6 years ago)
- Last Synced: 2025-03-06T04:46:43.505Z (over 1 year ago)
- Language: JavaScript
- Size: 231 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social Sharing Boilerplate
A sample app for enabling a user to interact with a React app and share some part of the state on social media platforms. The URL shared and resulting content when loaded will be relevant to the sharing user's activity.
Deployed to Heroku at https://social-sharing-boilerplate.herokuapp.com/
# Environment Variables
```
export WEBPACK_BUILD_MODE=(development|production)
export PORT=...port-for-express...
export APP_HOST=...URL-for-your-app...
export FB_APP_ID=...provided-by-fb-under-app-settings...
```
# Development
## Deploying Locally Using HTTPs
Generate a cert and an nginx config:
```
./bin/local-deploy/localhost-config
```
# External Setup for Social Networks
## Facebook
- create a facebook app.
- basic setup ok for functionality in this app
- place the app ID in the environment variable `FB_APP_ID`
- in the Basic Settings, provide the URLs for the privacy-policy and terms-of-service
- these must already be accessible publicly for the form to save
- to App Domains, add:
- the production domain this app will be served under
- localhost (or whatever your local URL is for serving the app in development)