Skip to content

Commit

Permalink
Update README: listed required vs. optional env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleecodes committed Oct 18, 2023
1 parent 8a4135f commit 291674b
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 69 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env*
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

#vscode and IDE settings
/.vscode
12 changes: 0 additions & 12 deletions .vscode/extensions.json

This file was deleted.

15 changes: 0 additions & 15 deletions .vscode/launch.json

This file was deleted.

25 changes: 0 additions & 25 deletions .vscode/settings.json

This file was deleted.

78 changes: 61 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Your Story Matters (YSM)

![GitHub Actions CI workflow badge](https://github.com/chaynHQ/ysm/workflows/YSM%20CI%20pipeline/badge.svg)

Your Story Matters (YSM) is a digital companion for survivors of sexual assault launched in 2019. Formerly called YANA (You Are Not Alone) and funded by Nesta and the UK Department of Digital, Culture, Media and Sport through the Tech to Connect Challenge, YSM has curated content including recovery, moving through trauma, accessing justice through the law, stories of resilience, and allows survivors the option to create an account and save their journey.

**Currently in active development.**

## Get Involved

If you would like to help Chayn and receive special access to our organization and volunteer opportunities, please [visit our Getting Involved guide](https://chayn.notion.site/Get-involved-423c067536f3426a88005de68f0cab19). We'll get back to you to schedule an onboarding call. Other ways to get involved and support us are [donating](https://www.paypal.me/chaynhq), starring this repo and making an open-source contribution here on GitHub, and supporting us on social media!
Expand All @@ -24,15 +20,41 @@ LinkedIn - [@chayn](https://www.linkedin.com/company/chayn)

# YSM Frontend

A [NextJs](https://nextjs.org/) VueJS app with PWA mode enabled and [Jest](https://jestjs.io/) unit testing.
![GitHub Actions CI workflow badge](https://github.com/chaynHQ/ysm/workflows/YSM%20CI%20pipeline/badge.svg)

A NextJs VueJS app with PWA mode enabled and [Jest](https://jestjs.io/) unit testing.

This repo serves just the YSM frontend, find YSM's backend code here: https://github.com/chaynHQ/ysm-backend

**Currently in active development.**

## How to Contribute:

Before making a contribution, please follow our Contributing Guidelines in [CONTRIBUTING.md](/CONTRIBUTING.md).

Happy coding! ⭐

## Development

### Technologies Used:

- [Next.js](https://nextjs.org/) - framework for React.js, a JavaScript library for building component-based user interfaces
- [Vue.js](https://vuejs.org/) - model–view–viewmodel frontend JavaScript library for building user interfaces and single-page applications
- [Firebase](https://firebase.google.com/) - user authentication and analytics
- [Rollbar](https://rollbar.com/) - error reporting
- [Mailchimp](https://mailchimp.com/) - marketing and email automation
- [Heroku](https://www.heroku.com/) - build, deploy and operate staging and production apps
- [GitHub Actions](https://docs.github.com/en/actions) - CI pipeline

### Prerequisites

- NodeJS v16+
- Yarn v1.21+

### Run local backend:

See [ysm-backend](https://github.com/chaynHQ/ysm-backend) for instructions. You will need to run this in the background for the frontend to be functional.

### Install dependencies

```bash
Expand All @@ -41,19 +63,33 @@ yarn

### Create .env.local file

Include the following environment variables in a .env.local file
Include the following environment variables in a `.env.local` file.

You will need to gather the following tokens from [Firebase](https://firebase.google.com/).

- NEXT_PUBLIC_FIREBASE_PROJECT_ID
- NEXT_PUBLIC_FIREBASE_APP_ID
- NEXT_PUBLIC_FIREBASE_KEY
- NEXT_PUBLIC_FIREBASE_DOMAIN
- NEXT_PUBLIC_ROLLBAR_SERVER_TOKEN
- NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN
- NEXT_PUBLIC_ROLLBAR_ENV
- NEXT_PUBLIC_MAILCHIMP_API_KEY
- NEXT_PUBLIC_MAILCHIMP_SERVER_PREFIX
- NEXT_PUBLIC_MAILCHIMP_AUDIENCE_ID
- NEXT_PUBLIC_ENV
If you're an official Chayn volunteer loading up the frontend, please get in touch with the team for access to the environment variables.

```
NEXT_PUBLIC_ENV=local
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
NEXT_PUBLIC_FIREBASE_KEY=
NEXT_PUBLIC_FIREBASE_DOMAIN=
# VARIABLES BELOW ARE OPTIONAL
NEXT_PUBLIC_ROLLBAR_SERVER_TOKEN= # rollbar for error reporting
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN=
NEXT_PUBLIC_ROLLBAR_ENV=
NEXT_PUBLIC_MAILCHIMP_API_KEY= # mailchimp for email automation
NEXT_PUBLIC_MAILCHIMP_SERVER_PREFIX=
NEXT_PUBLIC_MAILCHIMP_AUDIENCE_ID=
```

**If creating new environment variables:**

- Check if the new environment variable must be added the [ci.yml](.github/workflows/ci.yml) file.
- Note that new environment variables must be added to Heroku before release to production. Please tag staff in your issue if creating new environment variables.

### Run locally

Expand Down Expand Up @@ -96,3 +132,11 @@ Workspace settings for VSCode are included in this folder.
```bash
yarn build
```

## License

This project uses the [MIT License](/LICENCE.md).

YSM and all of Chayn's projects are open-source.

While the core tech stack included here is open-source, some external integrations used in this project may require subscriptions.

0 comments on commit 291674b

Please sign in to comment.