https://github.com/jplusplus/faktenforum-frontend
temporary fork of Faktenforum's frontend
https://github.com/jplusplus/faktenforum-frontend
Last synced: 5 months ago
JSON representation
temporary fork of Faktenforum's frontend
- Host: GitHub
- URL: https://github.com/jplusplus/faktenforum-frontend
- Owner: jplusplus
- License: agpl-3.0
- Created: 2023-10-03T10:36:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T14:18:40.000Z (over 2 years ago)
- Last Synced: 2025-04-06T17:52:08.637Z (about 1 year ago)
- Size: 2.37 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Faktenforum
This is the repository containing the frontend of the [Faktenforum](https://github.com/faktenforum).
## Getting Started
After cloning the repository:
```
npm install
npm start
```
## Development
### Development Environment
We use VS Code for development. It will suggest recommended extensions for this project.
Use `npm run dev` to start the frontend.
### Internationalisation
Our locale data is stored in [this Google Sheet](https://docs.google.com/spreadsheets/d/19cagWgvcenffTAW4suwBqWyQxvIqOjIjFRy5MaDcoJA/edit?usp=sharing). We use a [script](./scripts/i18n.js) to convert this data into `.json`-files that are placed in the `locale` folder of this repository.
As this uses the Google Sheets APIs, ask your favorite developer for their `.credentials.json` file so you can use the process below, or create your own google service account.
* Navigate to google cloud console iam section service accounts https://console.cloud.google.com/iam-admin/serviceaccounts
* Create an account
* In the "Keys" tab, click the "+ ADD KEY" button and choose "JSON"
* This will trigger a download for a JSON file. This is your service account key
* Copy the downloaded json file to scripts/.credentials.json
To update the locale data in the repository you run the following:
```bash
npm run locales
git add -A locales/ && git commit locales/ -m 'chore: updated locales'
```