-
Notifications
You must be signed in to change notification settings - Fork 2
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.
- Add a
<div>
to hold the comments - Add a script to set the config (see config.ts for valid config properties)
- 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>