Skip to content

Commit 5e3f28e

Browse files
Merge pull request #9 from kcoderhtml/dev
feat: Add instructions for initializing remote database
2 parents c9f210b + c448f71 commit 5e3f28e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/images/admins-table.png

14.1 KB
Loading

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ SLACK_CLIENT_ID=xxxxxxxxxx.xxxxxxxxxxxxx
4949
SLACK_CLIENT_SECRET=55f7xxxxxxxxxxxxxxxxxxxxxxxxxxxx
5050
SLACK_SIGNING_SECRET=d597xxxxxxxxxxxxxxxxxxxxxxxxxxxx
5151
```
52-
5. Have fun!
52+
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
53+
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:
54+
![Screenshot of Astro DB ADMINS Table](/.github/images/admins-table.png)
55+
8. Have fun!
5356

5457
## Integration && Use
5558
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

0 commit comments

Comments
 (0)