You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: document
* comment some more
* chore: some more comments
* chore: more comments
* chore: more comments
* chore: more comments
* chore: more comments
* chore: improve readme
Run `npm ci` to install directly from `package-lock.json` - if you use `npm install` or `npm i` instead it cannot be guaranteed that the dependencies work.
16
+
17
+
Set up a `.env` file with the variables from `.env.example` and fill in the values.
18
+
19
+
For PRISMA_FIELD_ENCRYPTION_KEY see: https://github.com/47ng/prisma-field-encryption#2-setup-your-encryption-key
20
+
21
+
### Running
22
+
23
+
Run `npm run dev` to start the development server.
24
+
25
+
You will need to setup a tunnel or some kind of way to expose the server to discord. I use cloudflare tunnels. The endpoint for the discord interactions is `/interactions`
26
+
27
+
You will need to have a gateway cache instance also running
28
+
[see message-manager-discord/gateway](https://github.com/message-manager-discord/gateway) and [message-manager-discord/redis-discord-cache](https://github.com/message-manager-discord/redis-discord-cache)
29
+
30
+
### Migrations
31
+
32
+
Prisma is used for migrations - run `npm run migrate` to migrate the database.
33
+
34
+
### General overview of important files
35
+
36
+
.github/workflows - contains github actions for CI config
37
+
prisma - contains prisma schema and migrations
38
+
src - contains the source code
39
+
.env - contains environment variables (do not use .env on production use docker env variables instead)
40
+
.env.example - contains example environment variables
0 commit comments