Skip to content

Commit

Permalink
Merge pull request #45 from realstorypro/env
Browse files Browse the repository at this point in the history
adding env example
  • Loading branch information
Leonid Medovyy authored May 18, 2023
2 parents 13676f1 + 836d80c commit ffc3928
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
ORGANIZATION='Enterprise'

APPSIGNAL_APP_ENV=local
APPSIGNAL_APP_NAME='Enterprise'
APPSIGNAL_PUSH_API_KEY=

URL_WITHOUT_PROTOCOL=localhost:3000
FROM_EMAIL='[email protected]'

# Secret for accessing `/api/v1` endpoint.
# We are not using this right now, but may in the future.
API_KEY=secret

# This can be generated via CLI by running `rails secret`
SECRET_KEY_BASE=10ff4b08bafa4c8438c8ab9898909b9f0d5002abadd1b73017cbd6df2faf4f200dd5edc9a53e4406db438635b5204251304138136f2c1da22881c528c53fa37a

# Head over to https://developer.feedly.com/v3/developer/ to get your own token.
# Feedly Pro+ is required to access the AI features.
FEEDLY_TOKEN=

# Head over to https://openai.com/ to get your token and organization id.
OPENAI_ACCESS_TOKEN=
OPENAI_ORGANIZATION_ID=

# Head over to https://www.thenextleg.io/, create an account, configure midjourney, and get your token.
NEXT_LEG_TOKEN=

# The URL of the platform is used for sharing links via social media.
STORYPRO_URL=https://storypro-618-537-356-706.herokuapp.com
STORYPRO_API_URL=https://storypro-618-537-356-706.herokuapp.com/api/v1

# Head over to https://app.storypro.io/, log in, navigate to your platform, head over to settings and get your api key.
STORYPRO_API_KEY=

# Head over to https://www.uploadcare.com/, create an account, and get your public and secret keys.
# ENsure that these are the same keys that you use on StoryPro.
UPLOADCARE_PUBLIC_KEY=
UPLOADCARE_SECRET_KEY=

# Head over to https://www.ayrshare.com/, signup for an account and get an api key.
# You will need a premium plan to send more then 20 messages per month.
AYRSHARE_API_KEY=
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ Our goal is to empower journalists, publishers, and content creators with the mo
By harnessing the power of AI and these innovative integrations, Enterprise not only enhances the efficiency of your newsroom but also elevates the quality and impact of your content. Join us on this exciting journey as we redefine the future of journalism together!

## Setup Instructions
0. Clone the repository and `cd` into it.
1. Run the `rails generate blueprints` command to copy over the blueprint files to the `blueprints` directory.
2. Modify the blueprint files to reflect the feeds and prompts you want to use by changing `topics.yml` and `prompts.yml`.
3. Fine tune topic generation by excluding unwanted tags in `tunings.yml`.
4. When finished, execute `rake blueprints:update` to load the changes into the database.
1. Clone the repository and `cd` into it.
2. Copy the `.env.example` file and create a new `.env` file: `cp .env.example .env`
3. Open the newly created `.env` file and populate it with the relevant keys and values. Note that you may need to sign up for some services to obtain these keys. Instructions for obtaining each key are included as comments in the `.env.example` file.
4. Run the `rails generate blueprints` command to copy over the blueprint files to the `blueprints` directory.
5. Modify the blueprint files to reflect the feeds and prompts you want to use by changing `topics.yml` and `prompts.yml`.
6. Fine tune topic generation by excluding unwanted tags in `tunings.yml`.
7. When finished, execute `rake blueprints:update` to load the changes into the database.





Expand Down

0 comments on commit ffc3928

Please sign in to comment.