Skip to content

Commit

Permalink
feat: Add instructions for initializing remote database and adding ad…
Browse files Browse the repository at this point in the history
…min users

This commit adds instructions to the README.md file for initializing the remote database and adding admin users. It provides step-by-step guidance on cloning the forked repository, installing dependencies, and running commands to initialize the remote database. Additionally, it includes a screenshot of the Astro DB ADMINS table for reference. These instructions enhance the usability of the project and help users get started quickly.
  • Loading branch information
taciturnaxolotl committed May 22, 2024
1 parent ba90bb5 commit c448f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added .github/images/admins-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ SLACK_CLIENT_ID=xxxxxxxxxx.xxxxxxxxxxxxx
SLACK_CLIENT_SECRET=55f7xxxxxxxxxxxxxxxxxxxxxxxxxxxx
SLACK_SIGNING_SECRET=d597xxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
5. Have fun!
6. Clone the forked repository and run `bun install` then `bun astro db login && bun astro db link && bun astro db push` to init the remote database
7. Once the netlify site has been built and deployed succesfully then go to the Astro DB you created and add your admin users to the db in the `ADMINS` table:
![Screenshot of Astro DB ADMINS Table](/.github/images/admins-table.png)
8. Have fun!

## Integration && Use
The api is very simple to subscribe someone to the newsletter then simply make a post request to your site at /api/subscribe and include the name and email via a json body e.g
Expand Down

0 comments on commit c448f71

Please sign in to comment.