Skip to content

Client Setup

Michael edited this page Apr 17, 2023 · 2 revisions

The instructions below explain how to add the Flamewars client to your site. It's expected that you've already run the backend setup and have an API URL and a Google Client ID.

  1. Add a <div> to hold the comments
  2. Add a script to set the config (see config.ts for valid config properties)
  3. Include the client JS
<div id="comments"></div>
<script type="application/javascript">
__FLAMEWARS_CONFIG = {
    awsUrl: 'https://abcdefg.execute-api.eu-west-2.amazonaws.com/default',
    googleClientId: '123456789012-abcdefghijklmnopqrstuvwxyzabcdefg.apps.googleusercontent.com'
};
</script>
<script type="application/javascript" src="/path/to/flamewars.js"></script>
Clone this wiki locally